Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Maximum order quantity

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-08-2018, 07:26 AM
 
hramani hramani is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 87
 

Default Maximum order quantity

Is there a way to restrict qty order for a product.
Example maximum Qty of product order allowed 6.
__________________
Harish R
5.3.4.5
Under Development
Reply With Quote
  #2  
Old 03-08-2018, 06:47 PM
 
SheMarcelo SheMarcelo is offline
 

Newbie
  
Join Date: Jan 2018
Posts: 7
 

Default Re: Maximum order quantity

I think you can edit it in the admin page. Catalog - Products area.
In prices & inventory you can actually put a Quantity in Stock.
Attached Thumbnails
Click image for larger version

Name:	sample.PNG
Views:	518
Size:	28.2 KB
ID:	5116  
__________________
X-Cart 5.3.4
Reply With Quote
  #3  
Old 03-09-2018, 06:34 AM
 
hramani hramani is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 87
 

Default Re: Maximum order quantity

Thanks. My question is not inventory related.
Let me clarify
Can a customer order a product, limited Qty maximum of 6.
ie customer can order qty from 1 to 6 but no more than 6.
__________________
Harish R
5.3.4.5
Under Development
Reply With Quote
  #4  
Old 03-09-2018, 06:54 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Maximum order quantity

There is no stock option in cart for this. I started a module on this functionality however it is on hold right now. If I ever get the time to finish it....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
hramani (03-09-2018)
  #5  
Old 06-20-2020, 05:39 PM
 
The Vinyl Spectrum The Vinyl Spectrum is offline
 

Member
  
Join Date: Dec 2014
Posts: 14
 

Default Re: Maximum order quantity

Quote:
Originally Posted by cflsystems
There is no stock option in cart for this. I started a module on this functionality however it is on hold right now. If I ever get the time to finish it....

Steve - any chance you finished this?
__________________
RUNNING: X-Cart Business 5.4.1.25
Reply With Quote
  #6  
Old 06-21-2020, 04:14 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Maximum order quantity

Wow it's been so long... No I did not. I have somewhat finished one for 5.3.x but not moved to 5.4.x. I don't remember exactly what it was but there was some issue with other modules like Sale and Wholesale getting in the way. I may go back to this and try to figure it out but for now it is still on hold.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 07-01-2020, 06:42 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: Maximum order quantity

Quote:
Originally Posted by hramani
Thanks. My question is not inventory related.
Let me clarify
Can a customer order a product, limited Qty maximum of 6.
ie customer can order qty from 1 to 6 but no more than 6.


It has been a while you posted the question, but do you still need this?
If yes, do you have many products for which you want to limit the quantity?
If yes again, does the limit change according to product? That is, 6 max for product X, 10 for Y, 12 for Z, etc... Or you simply have the same limit for all these products?


According to the answers, there might be a "dirty solution" with javascript (although, I think it is better to write a module).
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
  #8  
Old 07-09-2020, 06:16 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 66
 

Default Re: Maximum order quantity

Have a look at this-
https://devs.x-cart.com/changing_store_logic/forcing_product_quantity_while_adding_to_cart.html

This can be modified for your purposes if you only want to limit few products
__________________
Version 5.3.6.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:20 AM.

   

 
X-Cart forums © 2001-2020