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


Adding both "Add All to Basket" and "Add to basket" buttons in the "List with Quantity" template.

I am using the "List with Quantity" template but I'm unable to use the %prodaddall% token that is in the template with separate "Add to Basket" tokens for each product (2008/09/01)

This can be accomplished but it's a bit tricky. To work, the "add to basket" buttons will have to use Javascript to submit the "add to basket" functionality. Fortunately, the module is already capable of adding that javascript for you.

Try this:
In the stock "List with Quantity" template, in the "Main template" remove the %beginform% and %endform% tokens. Without those tokens the module will add it's own form around the entire 'product" template and will use Javascript for the buttons.

In the product template area add the html button to submit that product to be added to the basket:

<input type="button" value="Add to Basket" onClick="SubmitAdd('%prodcode%')">

With that configuration you should be able to add the products to the basket "in bulk" by using the "add all to basket" button or add them individually wiht the "Add to basket" button listed for each product.

Last update: 2008-09-01 09:46
Author: Thor
Revision: 1.1

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