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


{docurl}

I would like to have quantity boxes for my attributes so customers can select a quantitiy for each one rather than having to add the same product several times. For example, I sell fishing flies in different sizes and I would like my customers to be able to go to a product page and enter the quantity that they want for each size. Can I do this?

(2003/08/08) Added the capability to do this.
You can now use the token %attrqtybox|xxx|% (where xxx is the starting quantity to display in the field) to display an attribute quantity field. The token is used in the individual attribute templates on the "Attributes" tab. For example, to display a quantity field for "select" type attributes you could put the following in to the "Select attr. template" field:

<tr><td align = "left" valign = "top">

<font face="arial, helvetica" size="-1">
%attrqtybox|000|% %prompt%
</font>
</td><td align = "left" valign = "middle">

<font face="Arial, Helvetica" size="-1">
%fields%
</font>
</td></tr>

The checkbox attribute is something of a special case since the checkbox either selects it or doesn't and a quantity field is somewhat redundant. So I added a token, %fields_hidden% that can be used in the "Checkbox attr. template" field to hide the checkbox. So to display the label/prompt for a checkbox attribute and a quantity field without the checkbox itself you could use something like:

<tr><td align = "left" valign = "top">

 </td><td align = "left" valign = "middle">
<font face="Arial, Helvetica" size="-1">
<table border = "0">
<tr><td>
%fields_hidden%%attrqtybox|000|%
</td><td>
%prompt%
</td></tr>
</table>
</font>

</td></tr>

NOTE that you can't use the %prodqtybox token for the product at the same time that you use the %attrqtybox token in the individual attributes. It's redundant anyway. If you do use it, the quantity field displayed by the %prodqtybox token will not have any function.



Last update: 2004-12-07 14:16
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