Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Okay i have a editable section within the template to control the amount you can buy.

However sometimes with the shopping cart i'm building the amount instock is only 1. So for this i just want to say yes or no to show and hide the quantity value.

Yes will show this quantity form box and No will hide it.

Code: Select all
<input style="float:left; height: 24px; width: 20px; margin-top: 2px; margin-right: 4PX; text-align: center;" type="text" name="quantity" value="1" size="1" />
I'm not sure I understood you correctly, but see if this is what you want.
Code: Select all
<cms:editable name='show_quantity' label='Show quantity input?' opt_values='Yes=1' opt_selected='1' type='checkbox'/>

<cms:if show_quantity>
<input style="float:left; height: 24px; width: 20px; margin-top: 2px; margin-right: 4PX; text-align: center;" type="text" name="quantity" value="1" size="1" />
</cms:if>
2 posts Page 1 of 1
cron