Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to add to cart manually?


aashen

Recommended Posts

Group: Community Member

Posts: 4

Joined: 19-June 08

Member No.: 215,414

 

 

 

 

I have a customized website selling handbags which will be using the OS Commerce shopping cart. Each handbag has 5 colors. I currently have each color as a separate product because I want the thumbnails at checkout to reflect the appropriate color(product options do not allow for thumbnail images).

 

I would like to either use 5 radio buttons or a drop down menu for selecting a color. I have the following code for adding to cart manually using option values. Can anyone help with code for adding a product manaully. As mentioned above, I would have 5 products to choose from.

 

 

<form name="cart" form action="http://xyz.net/catalog/product_info.php?products_id=28&action=add_product" method="post">

 

<p><img SRC="addtocart_images/addtocart_color_text.gif" HEIGHT="28" WIDTH="100" BORDER=0 ALT="add to cart">

<select name="id[1]">

<option value="1">Berry</option>

<option value="4">Clear</option>

<option value="2">Nude</option>

<option value="5">Red</option>

<option value="3">Rose</option>

</select>

<br />

<input type="hidden" name="products_id" value="28">

<INPUT TYPE="image" SRC="addtocart_images/addtocart_button.gif" ALT="add to cart" align="bottom" WIDTH="129" HEIGHT="28" BORDER=0 onClick="return validateForm()">

 

</form></td>

 

 

Thanks for the help!

 

Tony

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...