milanus Posted February 17, 2008 Posted February 17, 2008 Hello Friends! I need to change the "QTY" on the shopping cart. As it is now, when an user clicks "add to shopping cart" it will add that product with quantity 1 by default and the user can change it to as many as he wants. I would like to change that to 3 by default, and let the user change it to as many as he wants. Even, if he wants to change it to 1 or 2 or 86 or any quantity instead of 3, it would be fine. Can someone help me? Thanks. Milanus :)
burt Posted February 17, 2008 Posted February 17, 2008 includes/application_top.php (line 361 approximately); 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['id']))+3, $HTTP_POST_VARS['id']); That should do it.
milanus Posted February 18, 2008 Author Posted February 18, 2008 includes/application_top.php (line 361 approximately); 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['id']))+3, $HTTP_POST_VARS['id']); That should do it. Thanks Burt, but it did not work yet. Anymore suggestions? I really need this to work. (Milanus)
liyo Posted February 25, 2008 Posted February 25, 2008 Hi there have 3 line need modify: line 361 line 370 line 415 change +1); to +3); this worke, i just do it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.