Quantity of 1 for a product

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
DBehl
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Fri Mar 21, 2008 11:01 pm

Quantity of 1 for a product

Post by DBehl » Tue Mar 25, 2008 11:49 am

I want to have a product have only a quantity of 1. I believe I can disable the quantity control to restrict this but I don't want to modify code if there is a setting for this?


Thanks for your help.
Doug

streetlightzjon
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Mar 12, 2008 5:25 pm
Location: Ca
Contact:

Post by streetlightzjon » Tue Mar 25, 2008 12:26 pm

I may not understand your questions completely.

But heres a shot.


You can set the inventory control and set the stock level at 1 and disable purchase once back ordered :?:

DBehl
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Fri Mar 21, 2008 11:01 pm

Post by DBehl » Tue Mar 25, 2008 12:49 pm

On the product page for this item there is a quantity that is shown . I want it to show a "1" with no ability to change it.

If they want a second product they must add another item to the cart.

When the product is in the shopping cart they cannot change the qualtity either.

This product has a Product Template.

I did notice that if the quantity is changed it still only shows the price calculation as if it is 1, but I don't want the quantity to show as 5.

Frankly I think this is a bug, but if they can't change the quantity then there is no problem. But they can.
Doug

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Post by jmestep » Tue Mar 25, 2008 3:26 pm

Changing this on the BuyProductDialog.ascx to a hidden field with the value of one would probably let them put only one into the basket. But you would have to have other code in the basket to keep them from changing the quantity.
<cb:updowncontrol Width="30" id="Quantity" runat="server" DownImageUrl="~/images/down.gif" UpImageUrl="~/images/up.gif" Columns="2" MaxLength="4" Text='1' onFocus="this.select()"></cb:updowncontrol><asp:CustomValidator ID="QuantityValidaor" runat="server" ValidationGroup="AddToBasket" ErrorMessage="Quantity can not exceed the available stock of {0}." ControlToValidate="Quantity">*</asp:CustomValidator>
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

DBehl
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Fri Mar 21, 2008 11:01 pm

Post by DBehl » Tue Mar 25, 2008 4:46 pm

Thank you.
Doug

Post Reply