Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default "Qty" on Shopping Cart


milanus

Recommended Posts

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...