Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


{docurl}

I would like to add a "rollover" effect to my "add to basket" button. I have the javascript to do it but how do I access the "add to basket" button since I'm displaying it with the token %prodadd%?

(2004/03/24)What you would need to do is replace the %prodadd% with the html for the button. The token %prodadd% results in two form fields being added to the form, a "submit" button and a hidden field for the Screen.

So to have control over the submit button, replace the %prodadd% token with something like:

<input type="submit" value="Add to basket" />
<input type="hidden" name="Screen" value="CTGY" />

That would redirect the customer back to category page after the product is added to their basket. If you would rather have them redirected to the Basket page, then use:

<input type="hidden" name="Screen" value="BASK" />

Of course instead of using the "submit" type field, you can use an "image" and use your own image for the button.



Last update: 2004-12-08 13:03
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category