wes2 Posted January 16, 2005 Posted January 16, 2005 Hello everybody, Amazing community around here, I have found it very useful in the last weeks. I have the following problem: I have installed b2b suite and control login to my site. If I want to buy 10pcs of same item, I will have only one (1) added to my cart. If I click the item again it will be added correctly and the cart is showing two pcs etc. Shopping cart.php page accepts different qty numbers, but it wont add them to my cart more than one at the time. Everything else seems to working great.
1Putts Posted January 17, 2005 Posted January 17, 2005 Hello everybody, Amazing community around here, I have found it very useful in the last weeks. I have the following problem: I have installed b2b suite and control login to my site. If I want to buy 10pcs of same item, I will have only one (1) added to my cart. If I click the item again it will be added correctly and the cart is showing two pcs etc. Shopping cart.php page accepts different qty numbers, but it wont add them to my cart more than one at the time. Everything else seems to working great. <{POST_SNAPBACK}> I don't have b2b suite but I did have the same problem adding the quantity to the cart from the product page. I fixed it by doing the following... Edit catalog/includes/modules/application_top.php If you have a line that says this: $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 it to this: $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+$cart_quantity, $HTTP_POST_VARS['id']); So instead of +1, you're adding the $cart_quantity variable. I'm not sure why it's set to 1.
wes2 Posted January 17, 2005 Author Posted January 17, 2005 Thank you very much for your help. Changed it but still only 1pc at the time. Is there any other suugestion which could effect to the item quantities?
1Putts Posted January 17, 2005 Posted January 17, 2005 Thank you very much for your help. Changed it but still only 1pc at the time.Is there any other suugestion which could effect to the item quantities? <{POST_SNAPBACK}> This is just my own guess - I'm very new at this so I might not be accurate. I suspect it's a similar problem but located elsewhere in one of your files. I'm not familiar with the B2B addition so I can't tell you where to look...but if I were you, I'd do a search of all the files and see if there is similar code - specifically as it relates to adding to cart functions. If that doesn't work, I'm afraid I'm all out of suggestions. :blush:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.