Using Choice Validation with Quantity on Shopping Cart pages
Posted: Wed Jan 12, 2011 10:23 pm
To use Choice Validation on Quantity on Shopping Cart pages have to edit the layout you use for the add to cart button and add the following code to the cart button tag:
E.g. your cart button code may look like:
And change to:
Note that the Cary button layout may contain 2 ocurrences of the imput tag, so you may have to add the line twice.
Code: Select all
onclick="return validateattributes(this.form,'<actinic:variable name="ValidateDateMessage" encoding="perl" selectable="false" />');"
Code: Select all
<input type="image"
src="<actinic:variable name="CartButtonImage" />"
name="_<Actinic:Variable Name="ProductID"/>"
alt="Add to Cart"
/>
Code: Select all
<input type="image"
src="<actinic:variable name="CartButtonImage" />"
name="_<Actinic:Variable Name="ProductID"/>"
alt="Add to Cart"
onclick="return validateattributes(this.form,'<actinic:variable name="ValidateDateMessage" encoding="perl" selectable="false" />');"
/>