Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Add to Cart with Drop Down Menu


Recommended Posts

To any1 that can help, i'm trying to create drop down menus with an add to cart button. For example, I'll have 2-4 seperate drop down menus and i will use


drop down menu page


<form action="process.php" method="post">

<select name="size">

<option value="139">11 x 4</option>

<option value="79">3 x 4</option>


<select name="color">

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

<option value="blue">Blue</option>


<input type="submit" value="submit"/>




process.php page


check wat product is selected(which i can do) and the "SCRIPTING I CANT FIGURE OUT" to add product to cart




I know the basic add to cart button is


the xx on the next line does effect anything

<form name="cart_quantity" action="http://www.web.com/product_info.php?products_id=xx&action=add_product" method="post">


the xx in the value assigns which product to add to cart

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

<input type="image" src="http://www.web.com/images/button_in_cart.gif" border="0" alt="Add to Cart" title=" Add to Cart ">


any recommendations would help.



Link to comment
Share on other sites

to add products to the cart with a pull-down menu is the same as adding from the products list. If you get a contribution for example that uses a popup menu for categories you simply change the categories to products and you append the action=buy_now


But the thing I don't know are the attribute selections. How you're planning to select attributes with the popup menus at the same time? It won't be practical.

Link to comment
Share on other sites


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

  • Create New...