Inventory level not displaying on product pages

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Si Burgess
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Mon Jul 20, 2009 8:52 am

Inventory level not displaying on product pages

Post by Si Burgess » Wed Jul 29, 2009 6:06 am

Hope someone can help here.

AbleCommerce 7.0.3 build 12458

As per the manual, I have turned on the Display Inventory (Configure / Store) then added inventory levels to my products and have marked them to be inventory tracked. None of my product pages show the stock level. :(

The product page being used is, Basic Product (Product.asp), changing this to any of the others also doesn't show the inventory. There are no errors in the error log.

I'm at a dead-end.

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

Re: Inventory not displaying on product page

Post by mazhar » Wed Jul 29, 2009 7:28 am

Working for me, Make sure that your store setting page has following in {0} units available In Stock Message filed and also your inventory mode for product is set to Track product. You have some instock value.

Si Burgess
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Mon Jul 20, 2009 8:52 am

Re: Inventory level not displaying on product pages

Post by Si Burgess » Wed Jul 29, 2009 7:47 am

Thanks for your response. Please see the attached images that show my settings and the lack of stock info on the product page.

I have one product which is a kit so is tracking the variants.

Does IIS need to be restarted to pick up the change in the Store Inventory setting?

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

Re: Inventory level not displaying on product pages

Post by mazhar » Wed Jul 29, 2009 7:49 am

What is the name of product available in above picture?

Si Burgess
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Mon Jul 20, 2009 8:52 am

Re: Inventory level not displaying on product pages

Post by Si Burgess » Wed Jul 29, 2009 8:04 am

Hacker A50-16S Brushless Outrunner Motor

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

Re: Inventory level not displaying on product pages

Post by mazhar » Wed Jul 29, 2009 8:17 am

Make sure when specifying the InStock value etc on EditProduct screen you didn't marked Allow Back Order option.

Si Burgess
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Mon Jul 20, 2009 8:52 am

Re: Inventory level not displaying on product pages

Post by Si Burgess » Wed Jul 29, 2009 9:27 am

It was the 'Allow Back Order' option that was doing it. :oops:

So there is no way to show the stock level AND to allow back-ordering, without making customising the system?

I would have thought the two requirements are separate from each other...

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

Re: Inventory level not displaying on product pages

Post by mazhar » Wed Jul 29, 2009 9:41 am

Edit ConLib/BuyProductDialog.ascx.cs file and locate following code

Code: Select all

if ((inv.InventoryMode == InventoryMode.None) || (inv.AllowBackorder)) return;
and change it as below

Code: Select all

if ((inv.InventoryMode == InventoryMode.None)) return;

Si Burgess
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Mon Jul 20, 2009 8:52 am

Re: Inventory level not displaying on product pages

Post by Si Burgess » Wed Jul 29, 2009 9:58 am

Excellent, that will do the job. Many thanks! :D

Post Reply