Custom form for adding products to cart with options

Post By:user_62489 | Reply

Hey everyone,

I have been trying to set up adding products to the opencart cart.

So far this works:

Code: Select all
<form action="index.php?route=checkout/cart" method="post">
   <input type="hidden" name="product_id" value="130">
   <input type="hidden" name="quantity" value="1">
   <input type="submit" value="Buy Now">

However, when I want to add options to the cart by adding the following input fields, the options never show up in the cart!

Code: Select all
<input type="hidden" name="option[195]" value="3965">
<input type="hidden" name="option[194]" value="Badger">

Where do you think I'm going wrong, and what do you think my options are? (pun not intended)

Thanks in advance!

user_62913Mon, 30 Nov -0001

Can you give us live example with your product page.

user_62489Mon, 30 Nov -0001


user_62489Mon, 30 Nov -0001


`Reply Or Comment!
Please LogIn to Reply!