Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to limit orderquantity for some products???


Maurice

Recommended Posts

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

Link to comment
Share on other sites

  • 3 months later...

Archived

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

×
×
  • Create New...