Is it possible to display the inventory count, short message, etc. (from Merchant's inventory feature) on the product listing and basket pages?
Yes, this can be accomplished by adding tokens to the templates that control what is displayed.
The tokens that can be used in the "Product Listing template:" (on the "Search Pages" tab) and "Product Template:" (on the "Main Page" tab) are:
%stocklevelcode% replaced with the "stock level code" (using the Merchant inventory feature)
%stockmessage% replaced with the long stock level message (using the Merchant inventory feature)
%stockmessageL% replaced with the long stock level message (using the Merchant inventory feature)
%stockmessageS% replaced with the short stock level message (using the Merchant inventory feature)
%stocklevel% replaced with the inventory count (using the Merchant inventory feature)
In addition, there are conditional tokens which will display their content only if the condition they test for is true:
%begin_instock%....%end_instock% will display it's content, represented by the ellipses, only if the product is in stock
%begin_outstock%...%end_outstock% will display it's contents only if the product is out of stock
%begin_lowstock%...%end_lowstock% will display it's contents only if the product is at "low" stock level
%begin_inv_tracked%...%end_inv_tracked% will display it's content only if the product's inventory is being tracked.
So, for example, to disply the product's stock level and the current inventory count on the "Product listing" in the serch pop-up, you could use the tokens, in the "product listing" template:
%begin_inv_tracked%
%stocklevel% (%stocklevelcode%)
%end_inv_tracked%
(the use of the conditional prevents the parentheses from being dispalyed for products which are not having their inventory tracked).
Last update: 2007-09-07 13:54
Author: Brock
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2521 views:
Adding Tokens to Evaluate Expressions - 2510 views:
Why won't you call me for technical support? I ... - 2489 views:
Is there a way to "Limit" the number of ... - 2402 views:
Are license keys valid for more than one store? ... - 2308 views:
I'm trying to enter a license key and get ... - 2270 views:
How do I install a module? - 2133 views:
How do I check for a module upgrade? - 2132 views:
How can display and change the parameters of an ... - 1960 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















