View Single Post
  #2  
Old 09-22-2015, 03:30 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Setting a maximum order quantity for products

Actually, there are multiply lines of code that check the minimum order quantity for products, for example:

include/func/func.cart.php

Code:
// Update the quantities foreach ($productindexes as $productindex => $new_quantity) { ... $amount_min = func_query_first_cell("SELECT min_amount FROM $sql_tbl[products] WHERE productid='$productid'"); ... if ( $new_quantity >= $amount_min && !empty($active_modules['Egoods']) && !empty($cart['products'][$productindex]['distribution']) ) { $cart['products'][$productindex]['amount'] = 1; ... } }
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote