Miva Merchant 5 Module FAQs » Inventory Manager 5.x


How can I display an inventory "status" message in the basket (either on the BASK screen or during checkout) so that customers can see if the product is back-ordered?

NOTE: in the latest versions of the module (updating is always a good idea) this is best accomplished using the values set by the module in the l.all_settings and l.settings variable (i.e. it now uses the same approach as Merchant itself). Details can be found in this FAQ on the subject:
Displaying and Controlling the Inventory Data

You can display the inventory "status" of each product in this manner:

1) Go to the "items" tab of the page you want to add the display to, for example, the Basket Contents (BASK) page and make sure that the Inventory Manager "item" is assigned to that page.

2) On the "Basket Contents" tab of that  page add the tokens that you want to use.  They need to go inside of the code:

<mvt:foreach iterator="item" array="basket:items">


(there will be a bunch of other </mvt>s before the one that belongs to the <mvt:foreach...).  This is the loop which displays the items in the basket.  

You can use the "usual" tokens listed in the 5x_documentation.txt file that is included in the Inventory Manager download zip file.  Including:

<mvt:item name="BROK_INVENTORY" param="long_message" /> :the product's current level's long message

<mvt:item name="BROK_INVENTORY" param="short_message /> :the product's current level's short message

<mvt:item name="BROK_INVENTORY" param="level_name /> :the current inventory level (name)

Last update: 2009-07-17 11:51
Author: Thor
Revision: 1.2

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