The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
How to change Category Links from Text to Images
Author Message
Reply with quote
Post How to change Category Links from Text to Images 
I'm guessing that I use the image token to create a link to my Category in the
<!-- agorascript-pre { # code to count up the Cart contents} -->

And place the %%image%% token somewhere in the <HREF> tag to have the
Category display as an image instead of a Text Link.

If someone could give me an example it would be helpful and I can figure it out
from that.

Thanks

Howard

View user's profile Send private message
Reply with quote
Post  
Howard,
You can create 1 image that would be sort of a background image for doing the links that would be used in the agorscript-pre stuff, but the %%image%% token only works on the ppinc files.
I think Dan had the code for doing the background image for the links....I can't seem to find it, but I'm sure that when he gets on here he can tell you where to find it...

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
i was going to do a whole bunch of misc hacks and tutorials and stuff on my site. howerver, after observations over time and trends i decided not to further contribute to diverting traffic away from agoracart.com. as a result my "public support" page is unfinished, unimproved and frankly lame. the image buttons are wrong for the default design and the store i've used to test stuff so the "live" example is lame but the display will represent what the hack does.
here's the link to the only public information i have on my site...
http://www.cartsolutions.net/public/autolink1.html
it's a good start and works. you can customize or use as a basis for customizing further. i do the same thing in css with rollovers (no js) for clients which works really cool. the product category links are plain text and can do all sorts of stuff like mouseover effects with rollovers but too much is too much. grin.
dan

Reply with quote
Post  
Dan

In the second $str .= there is a value class=\"Explanations\". Is this the link
where I would substitute for my class file?? And following that path where do
you normally stick your css files??

I understand that $str .= defines a Class. Is the value with "Explanations\" a class within
a Class??

Thanks

Howard

View user's profile Send private message
Reply with quote
Post  
this line:
Code:
$str .=  "<a href=\"agora.cgi?cart_id=%%cart_id%%&product=$category&xm=on\" class=\"Explanations\"> $category2 </a>";
demonstrates one method of defining the characteristics of the printed category name. there are other methods but this is the one i used. this is a singular defined class in the css file. the terminology is laziness on my part. i adapted a text class in the css because i liked the properties. Embarassed
in the live example i didn't include the css file. so you would change only the term Explinations to whatever class you want that is defined in your css file.

your class in the css file may look something like this:
Code:
.category
  color: #150185;
  text-decoration: underline;
}

so your string would look like this:
Code:
$str .=  "<a href=\"agora.cgi?cart_id=%%cart_id%%&product=$category&xm=on\" class=\"category\"> $category2 </a>";

like i said things are kinda lame because i dropped the idea of having much in terms of public agora support on my site and it's unimproved and unrefined.
dan

Reply with quote
Post  
Thanks for your resources and coding examples.

Howard

View user's profile Send private message
Reply with quote
Post  
you're welcome. if you have any other problems or troubles just holloer.
dan

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum