Miva Merchant 5 Module FAQs » Phone Order Manager 5.x


{docurl}

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

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category