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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.