Zen Cart Logo
Forums / General Questions / Show available stock level when less than order

Show available stock level when less than order

Locked

Views: 1,668

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Jan 2009, 1:24 PM
#1
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Show available stock level when less than order

Hi,

The option in Zen Cart which shows available stock level in cart when less than order has, umm... broken.
The value is set to "true" in Admin>Configuration>Stock but the stock quantity isn't showing up in the cart at checkout.

It was working up until yesterday when we carried out quite a few updates but I cannot for the life of me figure out why it should stop working?

Does anyone know where I should start looking to figure out what's wrong?

Thanks!

22 Jan 2009, 1:29 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Show available stock level when less than order

Did any of your updates affect the shopping cart class or template?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Jan 2009, 9:50 PM
#3
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Show available stock level when less than order

Hi Kuroi,

Not as far as I'm aware, definitely no changes were made to the stylesheet. As for the shopping cart template, I reverted back to an old version to make sure I hadn't edited out any code etc but it didn't make any difference... still no stock numbers showing up in red as they were before. I'm totally stumped!

22 Jan 2009, 9:56 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Show available stock level when less than order

If not the template, what about the shopping cart task, from which the message is generated? What was the nature of the updates you made?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

10 Feb 2009, 1:39 PM
#5
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Show available stock level when less than order

Bingo!

This has now been resolved. For anyone experiencing a similar problem, the fault was caused by tpl_shopping_cart_default.php and the fact that I'm using the stock by attributes add-on which uses a modified version of tpl_shopping_cart_default.php. I must've replaced the stock by attributes version of tpl_shopping_cart_default.php with the one supplied with zen cart during an update which was what caused the problem. :D