Knowledgebase: FAQs
Options of items added to the cart are reset if the update button is pressed
Posted by Matt Marler on 24 March 2010 11:20 AM
If you're using options with your items in Cart32, and are having problems with the options being reset to their default values when the item is updated in the cart, there are two things you can check.

Check your formcode for the item in question. Pay careful attention to the P and T fields in the formcode. These are the fields that control the options, and if they don't match it can cause this problem. The items in the T and P fields must match exactly, spaces included. In the first example, the data in the p1 fields match the data in the t1 fields, while the second example has inconsistent spacing. For more information on how to setup options, look here.


This example works properly

<b>Size:
<select name="p1">
<option value="Large">Large
<option value="XL">XL<
<option value="Medium">Medium
</select>
<input type=hidden name="t1" value="d-Size;Large;XL:price=+1.00;Medium:partno=1001">
<b>Color:
<select name="p2">
<option value="Green">Green
<option value="Red">Red
<option value="Blue">Blue
</select>
<input type=hidden name="t2" value="d-Color;Green;Red;Blue">


This example has inconsistent spacing in the T1 and P1 fields.


<b>Size:
<select name="p1">
<option value="Large ">Large
<option value="XL ">XL
<option value="Medium ">Medium
</select>
<input type=hidden name="t1" value="d-Size; Large;XL:price=+1.00; Medium:partno=1001">
<b>Color:
<select name="p2">
<option value="Green">Green
<option value="Red">Red
<option value="Blue">Blue
</select>
<input type=hidden name="t2" value="d-Color;Green;Red;Blue">


*This possibility only applies if you are using a products database. If you are unsure if you are using a products database, log into the web admin of your shopping cart, then go to the Products tab to check.

The option fields of your item may not match the option fields in the products database. Check to make sure that the options you're passing in your formcode match the options mapped out in the database (make sure you have the same number of T and P fields), and that the option values are the same in both places.

(16 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: