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 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 ...
















