How to remove the display of quantity of items in stock

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
alee337
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Sep 26, 2008 4:17 pm

How to remove the display of quantity of items in stock

Post by alee337 » Fri Sep 26, 2008 4:27 pm

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

combra
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Thu Jul 31, 2008 7:09 pm

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

Post by combra » Fri Sep 26, 2008 4:31 pm

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.
AC 7.0.7 build 14600

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

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

Post by mazhar » Fri Sep 26, 2008 9:46 pm

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

Post Reply