Jump to content

Getting the quantity in shopping cart


graham23s

Recommended Posts

Hi Guys,

 

im using this piece of code for the products on my e-commerce site:

 

  $display_box = "<div align=\"center\" id=\"right\">\n";
$display_box .= "<div class=\"boxtop\"></div>\n";
$display_box .= "<div class=\"box\">\n";
$display_box .= "<p><img src=\"images/image.gif\" alt=\"Product Image\" title=\"Product Image\" class=\"image\" /><b>$product_name</b><br /><br />consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis.<br /></p>";
$display_box .= "<div class=\"buttons\"><br /><a href=\"shoppingcart.php?productid=$productid\"><img src=\"images/cart_navy.gif\" border=\"0\"></a><br /><br /><b>Quantity:</b> ";
$display_box .= "<select name=\"quantity\"><option value=\"1\">1</option><option value=\"2\">2</option><option value=\"3\">3</option>";
$display_box .= "</select></div>\n";
$display_box .= "</div>\n";

 

i can pass through the product id fine by just GET on the next page but im not sure how to grab the quantitly and pass it through any ideas would be great

 

<a href=\"shoppingcart.php?productid=$productid\">

 

cheers

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/90551-getting-the-quantity-in-shopping-cart/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.