The site is using Manager.
I have a template developed that has a product with 2 options:
- No extras thanks
- with the extra pc which will be personalized
I have it set up and working. It adjusts the cart price accordingly when the extra pc option is selected. There is a text box visible on the product page at all times for the personalization.
What I want:
If default title or no extras selected
the text box is not shown
If the with the extra pc w/ personalization is selected
show the text box
- Code: Select all
<form action="[-- SHOPPING_CART_URL Base --]/order.cgi" method="post">
<p>
<input type="hidden" name="storeid" value="[-- STORE.ID --]" />
<input type="hidden" name="dbname" value="products" />
<input type="hidden" name="function" value="add" />
<input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]" /></p>
[-- IF PRODUCT.DisplayOrderingOptions --]
[-- PRODUCT.OptionText --]
[-- Order_Option_Menu NoFormat --]
[-- END_IF --]
[-- IF PRODUCT.OptionsBox --]
<p>Please enter text below:</p>
<textarea name="[-- PRODUCT.Recordnumber --]:freeopt" cols="[-- PRODUCT.OptionsBoxColumns --]" rows="[-- PRODUCT.OptionsBoxRows --]"></textarea>
[-- END_IF --]
<p><strong>Quantity:</strong>
<input type="text" size="3" value="1" name="[-- PRODUCT.RecordNumber --]:qnty" /></p>
<p class="center"><input class="add" type="submit" value="Add to Cart" /></p>
</form>
I already tried something like:
If finopt:2 and End if around the text box but that didn't work.
What I need is an onchange for the selection.
Onchange,
If they select w/ personalization
Show textbox
Any ideas on how to get this to work as I want?