Best Way to Limit Product Quantity

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Best Way to Limit Product Quantity

Post by VIPER7 » Mon Jan 26, 2009 1:36 pm

We have a category called Registrations. We do not want the user to be able to select Quantity. We want it defaulted to a Quantity of 1, always. What is the best way to go about this?

Thanks!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Best Way to Limit Product Quantity

Post by mazhar » Tue Jan 27, 2009 4:16 am

You can hide the quantity box if the product category is registration. Have a look at this thread
a quite similar job
viewtopic.php?f=42&t=9500

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: Best Way to Limit Product Quantity

Post by VIPER7 » Tue Jan 27, 2009 11:34 am

I made the changes as prescribed in that thread to the Basket.ascx and BasketHelper.cs files and it had no effect whatsoever. The quantity is still visible and can be changed. There should be a property in the UI that you can set for a category to disable quantity or force a specified quantity.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Best Way to Limit Product Quantity

Post by mazhar » Tue Jan 27, 2009 11:51 am

The above post will just hide the quantity box in basket page. If you want to hide the box in category pages and all other locations then probably you need to modify those controls to take care of this.

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: Best Way to Limit Product Quantity

Post by VIPER7 » Tue Jan 27, 2009 12:07 pm

All I want to do is hide the Qty selection (actually force it to 1) for a specific category we have called Registrations. Is there a way to do that?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Best Way to Limit Product Quantity

Post by mazhar » Tue Jan 27, 2009 12:36 pm

Read the following post
viewtopic.php?f=44&t=8542&p=36645&hilit ... rol#p36645
The code of Updown control is available here. You can customize your own updown control which can take care of quantity amounts for some specific category.

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: Best Way to Limit Product Quantity

Post by VIPER7 » Mon Feb 09, 2009 5:25 pm

I am still looking for the best way to disable (actually force to a quantity of 1) for a specific category I have called Registrations. I have followed the link posted but it doesn't really say what I have to do, even with the code. I just want to force all products, when ordered, in a given category, with a Qty of 1, and NOT editable in the basket. Is there a way to do this?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Best Way to Limit Product Quantity

Post by mazhar » Tue Feb 10, 2009 7:48 am

I think it would be better to set the Max Quantity value to 1 in product settings for all products of that specific category. By doing so user will not be able to purchase more then one item of all those products.

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: Best Way to Limit Product Quantity

Post by VIPER7 » Wed Feb 11, 2009 11:49 am

Mazhar,

Setting the Max Qty to 1 under the Inventory section has effectively made it so that only one person can order a registration one time only. I think that section is more for inventory control rather than governing quantity of a product ordered.

I am willing to bet that if you entered a Max Qty of 100 in that field, then someone purchased a registration, it would deduct that value by 1 thus leaving you with 99 registrations available. A good feature but doesn't help in our particular case.

Any other ideas on how we can limit quantity ordered?

Post Reply