Re: Theme snippet for stocklevel display on product pages

Posts: 47
Joined: 01/20/2008
Bug Finder

I'm finding this theme snippet to be a real gem as it dramatically cuts down customer questions about particular product attributes being in stock.

Placing the < ? php print $stock_html ? > in < fieldset class=" collapsible collapsed" > < / fieldset > tags, allows the table to be displayed in a collapsed field, which reduces screen clutter.

Two Questions:
1) Is there a way to use the snippet to display a message if there are no attributes in stock? (At the moment if no attributes are in stock, no table is rendered, which is confusing to the end user).

2) Also, this snippet only displays a decrease in stock when an item has been purchased. Is there any way to make it display a decrease when a product has been added to a cart, but hasn't yet been purchased.

^_^

Stock level on catalog page By: opa001 (13 replies) Mon, 03/31/2008 - 16:11