Miva Merchant 4 Module FAQs » Product Page Templates (BROK_PRODTEMPLATES )


{docurl}

In the PROD TEMPLATE, is there a way to use tokens in the "Add to Basket alt:"

(2004/02/11)Nope.

However, you could achieve something equally as effective (I think) by taking out the token and replacing it with the html.

The %prodadd% token is simply replaced with the token for the submit button and the hidden field for "Screen". SO %prodadd% might be replaced with:

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

So you could simply replace the token with the form field for the submit button (or "image") and the hidden screen variable.

The %prodaddone% is replaced with the token for the submit button, the hidden field for the "Screen", and a hidden field for the quantity. So you could take out that token and put in it's place something like:

<input type="submit" value="Add One to basket">
<input type="hidden" name="Screen" value="PROD">
<input type="hidden" name="Quantity" value="1">


The %prodbuy% and %prodbuyone% tokens are similar except when those tokens are present in the template the secure url is used for the form (so the button takes you to the secure pages) and in addition to the above form fields it also adds the field:

<input type="hidden" name="Order" value="1">



Last update: 2004-12-07 13:31
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