Page 1 of 1

How to remove the display of quantity of items in stock

Posted: Fri Sep 26, 2008 4:27 pm
by alee337
Can someone help me figure out how to remove the quantity available of an item from being displayed on the user side? Attached is a screenshot of the problem.

Any help is appreciated. Thanks in advance. =)

Alan

Re: How to remove the display of quantity of items in stock

Posted: Fri Sep 26, 2008 4:31 pm
by combra
Admin>Configure>Store

Then under Inventory, change your in stock message to something like, In Stock . That should be a quick fix.

Edit: Or if you don't want anything, change the display inventory selection to No.

Re: How to remove the display of quantity of items in stock

Posted: Fri Sep 26, 2008 9:46 pm
by mazhar
If you completely want to hide the message and also want to keep the inventory control on then you can made a small code modification to hide the message. For this change edit the ConLib/BuyProductDialog.ascx.cs file and find the following line of code

Code: Select all

InventoryDetailsPanel.Controls.Add(new LiteralControl(inStockMessage));
and replace it with the following code

Code: Select all

Control literal = new LiteralControl(inStockMessage);
literal.Visible = false;
InventoryDetailsPanel.Controls.Add(literal);