X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Limit Purchase to 1 Item (https://forum.x-cart.com/showthread.php?t=66186)

momentum 02-21-2013 05:20 AM

Limit Purchase to 1 Item
 
Hello Great Forum

I have an odd request.

1. This store sells business cards in bulk of 250, 500, 1000,

2. We of course have many in stock so they can order many boxes as they want.

3. What I want is to limit the amount of items they add to the cart as 1

4. Which means I have 10,000 in stock but he can only add 1 at a time to add to cart.

5. I have a drop down box for the customer to choose the 250, 500, 1000 but I want her to only have the ability to add 1 box to the cart at a time.

6. If he wants to boxes he has to add the 2nd box to the cart and he can only add 1 at a time

So, what do you think can this be done?

YBizzWeb 02-24-2013 02:38 AM

Re: Limit Purchase to 1 Item
 
If i understand you correctly, you have options of 250, 500, and 1000 cards per box that customers can order. Then you have the quantity of products to purchase select box.
If this is correct, i would solve this by changing the qty select box with hidden qty input field with value of 1.

momentum 02-25-2013 04:09 AM

Re: Limit Purchase to 1 Item
 
Hello

I love your idea; however, I am not sure how the following gets implemented for this one product.

You write, "If this is correct, i would solve this by changing the qty select box with hidden qty input field with value of 1."

Is this something easy to do.

YBizzWeb 02-25-2013 06:18 AM

Re: Limit Purchase to 1 Item
 
Hi there,

If you want to make this more universal for future products as well, i would be checking product options to determine how to display the qty field.

For example, if product options (name/value) meat your criteria then us hidden input field for your qty and set the value to 1, otherwise show the select box for the qty.

Also, if this is the only product with this scenario, you can always check for product ID to determine the qty display.

This can all be done within the template itself.

Hope this helps, and if you find yourself having issues doing this, we can always help.


All times are GMT -8. The time now is 11:09 AM.

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