Miva Merchant 4 Module FAQs » Inventory Manager (BROK_INVENTORY)


{docurl}

Is it possible to display the inventory count on the basket and invoice pages (and other checkout screens)?

Yes.  If you're using the Other Page Templates module to display the basket and invoice pages you can dispaly the product's inventory information by adding a "type" to the %module tokens (see discussion below on using %module tokens to display inventory information for products and attributes).

There are two new "types":

basket
order

So on a normal product page (using the Product Page Templates module) you can display the inventory with (assuming that you have registered the Inventory Manager on the template module's 'Third Party Tokens' tab with the token BROK_INVENTORY):

%module|BROK_INVENTORY|count|%   (the # in stock)
%module|BROK_INVENTORY|short_message|%    (the short message assigned to the current level)
%module|BROK_INVENTORY|level_name|% (the name of the current stock level)
etc

To use these tokens on the Basket screen, you would add the type 'basket' to the token (these would be used in the "Product template" area of the template assigned to the BASK screen):

%module|BROK_INVENTORY|count:basket|%
%module|BROK_INVENTORY|short_message:basket|%
%module|BROK_INVENTORY|level_name:basket|%

The display of the products on the other checkout screens are also of type "basket" (i.e. the products dispalyed are the basket contents) so these same tokens will work in the templates displaying the other checkout screens.

Similarly, to use these tokens on the Invoice screen, you would add the type 'order', since the products displayed on the invoice page are the order contents, to the token (these would be used in the "Product template" area of the template assigned to the INVC screen):

%module|BROK_INVENTORY|count:order|%
%module|BROK_INVENTORY|short_message:order|%
%module|BROK_INVENTORY|level_name:order|%



Last update: 2008-10-28 10:06
Author: Thor
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