I would like to use the "attribute quantity" feature that you recently added to the module to let my customers select quantities for each attribute. However, instead of text fields, I would like to use drop down lists so that they can select the quantities. Can this be done?
(2003/08/30)I modified the module so that you can do this. Here's how to go about it:
To the "Attributes main template" area of the template that you want to use, add (anywhere in the template works but put it at the top so you'll see it there):
and in the attribute template that you want to display the quantity select list add:
and the html for the drop down select list (using whatever options that you want:
make sure that the name for the select field is AttributeQuantity[%var|g.Total_Attributes|%]
As an example, in my store, I wanted a quantity selection list for quantities 0, 2, 4, 6, and 8. I modified the "Checkbox attr. template" so that it displayed the drop down select field next to the prompt and I wanted to hide the checkbox itself (using the %fields_hidden% token as described below). So in the "Checkbox attr. template" area I have:
%fields_hidden% | %prompt% |
Keep in mind that this will cause all checkbox attributes of products that are assigned to this template to display in the same manner. Note also that the "Attribute Quantities" feature is not compatible with the ability to have a single "Add all to basket" button on the category page (which will add all of the products displayed to the basket). Each individual product has to have it's own %beginform% and %endform% in the product template and it's own "add to basket" button.
Last update: 2007-05-25 11:40
Author: brok
Revision: 1.1
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2939 views:
Adding Tokens to Evaluate Expressions - 2867 views:
Is there a way to "Limit" the number of ... - 2792 views:
Why won't you call me for technical support? I ... - 2678 views:
Are license keys valid for more than one store? ... - 2577 views:
I'm trying to enter a license key and get ... - 2567 views:
How do I install a module? - 2409 views:
How do I check for a module upgrade? - 2372 views:
How can display and change the parameters of an ... - 2218 views:
The total on my checkout pages are not correct. ... - 2016 views:
I have select and radio type attributes in my ...
















