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


Using "Add to Basket" AND "Buy One Now" Buttons In The Same Template

Can I have "add to basket" AND "buy one now" buttons both in the same template? When I try this it causes problems.

Yes you can. The problem with simply adding the buttons to the default templates is that it causes the forms to have two submit buttons in the same form. By default, the module places the form around the product template area so both buttons were in the same form. In later versions of the module (since version 4.12) you can fix this by specifically placing the location of the form tags by using tokens. The token to place the opening form is %beginform% and the ending form %endform% (both are required naturally and they cannot overlap. If they are not used, the default form placement is used). You can have multiple instances of this pair of tokens in a template. So you can have both a "add to basket" and "buy one now" button in your template by replacing this area of your template with something like:

%prodqtybox|001|% %prodadd%


Last update: 2003-07-29 21:00
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