X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Maximum order quantity (https://forum.x-cart.com/showthread.php?t=76077)

hramani 03-08-2018 07:26 AM

Maximum order quantity
 
Is there a way to restrict qty order for a product.
Example maximum Qty of product order allowed 6.

SheMarcelo 03-08-2018 06:47 PM

Re: Maximum order quantity
 
1 Attachment(s)
I think you can edit it in the admin page. Catalog - Products area.
In prices & inventory you can actually put a Quantity in Stock.

hramani 03-09-2018 06:34 AM

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.

cflsystems 03-09-2018 06:54 AM

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....

The Vinyl Spectrum 06-20-2020 05:39 PM

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

cflsystems 06-21-2020 04:14 AM

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.

Ed B. 07-01-2020 06:42 AM

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

siddharth.puri@wheelandba 07-09-2020 06:16 PM

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


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.