I use the %stocklevel% token to display the inventory count of products listed in the "Search products" window but they are not matching the inventory count in Merchant admin. Why?
Merchant's inventory feature provides a number of variables for each product portraying it's inventory status. The module currently uses the variable INV_AVAILABLE for the token %stocklevel%. However, technically, this value represents the "number that can be purchased" not the number currently in stock. If your store permits backorders then the number that the count is permitted to drop below 0 is added to the actual number in stock. So if the number in stock is 15 and your store permits backorders to -10, the %stocklevel% token will display 25, the number that can be purchased (since this would take the inventory count down to -10, the cutoff for "backordered").
I have added a
new token %stockcount% which displays the actual count in stock, not
the number "available to be purchased" (which is still represented by
%stocklevel%).
Last update: 2008-01-08 20:35
Author: Thor
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
- Is it possible to display a link in Phone ... (2008-08-06 12:05)
Top 10 
- 2754 views:
Adding Tokens to Evaluate Expressions - 2698 views:
Is there a way to "Limit" the number of ... - 2654 views:
Why won't you call me for technical support? I ... - 2549 views:
Are license keys valid for more than one store? ... - 2447 views:
I'm trying to enter a license key and get ... - 2425 views:
How do I install a module? - 2286 views:
How do I check for a module upgrade? - 2255 views:
How can display and change the parameters of an ... - 2097 views:
The total on my checkout pages are not correct. ... - 1932 views:
I have select and radio type attributes in my ...
















