Hello All,
I know this code is correct for adding a product to the cart. But it is not passing the selected (required) attributes with the add action. Can anyone tell me what I have wrong with the attributes part of the code?
<form method="post" action="&mvte:global:sessionurl;Screen=BASK">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
<input type="hidden" name="Action" value="ADPR">
<input type="hidden" name="Product_Code" value="12345" />
<input type="hidden" name="Products_Attributes[1]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[2]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[3]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[4]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[5]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[6]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[7]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[8]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[9]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[10]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[11]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[12]:value" value="Blue" />
<input type="hidden" name="Quantity" value="1" />
<input type="submit" value="Add to Basket">
</form>
Thank you,
I know this code is correct for adding a product to the cart. But it is not passing the selected (required) attributes with the add action. Can anyone tell me what I have wrong with the attributes part of the code?
<form method="post" action="&mvte:global:sessionurl;Screen=BASK">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
<input type="hidden" name="Action" value="ADPR">
<input type="hidden" name="Product_Code" value="12345" />
<input type="hidden" name="Products_Attributes[1]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[2]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[3]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[4]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[5]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[6]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[7]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[8]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[9]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[10]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[11]:value" value="Blue" />
<input type="hidden" name="Products_Attributes[12]:value" value="Blue" />
<input type="hidden" name="Quantity" value="1" />
<input type="submit" value="Add to Basket">
</form>
Thank you,
Comment