seanpaul Posted February 25, 2003 Share Posted February 25, 2003 Hi All, I have been searching the contributions looking for one that lets customers choose the quantity of a product within my store without having to leave the products page, what I mean by this is I have many products which will be bought in conjunction with other products these will all appear on the same page some times my customers will buy 2 of one product, 7 of another, 3 of another etc. I would like them to be able to do this all from the product page without having to go to checkout then back again. Is there a contribution out there already that can enable me to do this in my store? Thanks Quote Link to comment Share on other sites More sharing options...
♥olby Posted February 25, 2003 Share Posted February 25, 2003 Hi Jean Paul. Its not a contribution - its a text in a thread somewhere :) Looks like this: In application_top.php find: $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); Change to: $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'])+($HTTP_POST_VARS['cart_quantity'])), $HTTP_POST_VARS['id']); Open product_info.php and put this in an appropiate place: <font class="main">Quantity: <input type="text" name="cart_quantity" value="1" maxlength="2" size="2"> Thats it :wink: Quote Best Regards olby Link to comment Share on other sites More sharing options...
seanpaul Posted February 25, 2003 Author Share Posted February 25, 2003 Thanks Olby :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.