Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to limit orderquantity for some products???


Maurice

Recommended Posts

Posted

Hi,

 

Some product needs to be limit in the quantity that customers can order.

 

I played a little with application_top.php and I changed:

$cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false);

into

//Cart Quantity always 1 

$cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][1], $attributes, false);

 

But that gives strange behaviour when you have more then one different products in the cart.

 

A good idea maybe would be to have an extra field in the productstable called maxorderquantity or something like that.

 

Hopefully someone can help me out here.

 

Kind regards,

 

Maurice

  • 3 months later...
Posted

I am trying to do the same thing in our cart. I need a few of the products limited to a max. # of qty in cart. For instance, customers may only order a maximum of 25 of one item, but can order 500 of another.

 

Help anyone!?

Archived

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

×
×
  • Create New...