Miva Merchant 4 Module FAQs » Phone Order Manager (BROK_PHONEORDERS)


{docurl}

When I attempt to add a product with insufficient inventory or when I try to increase the quantity of a product in the basket past the available inventory the page simply refreshes. How can I display a message to the user about what happened?

The module stores the inventory message in the variable g.InventoryMessage. The inventory message can be displayed with the token:

%var|g.InventoryMessage|%

and conditionally displayed with the conditional:

%begin_if|len('%var|g.InventoryMessage|%')|%

%var|g.InventoryMessage|%>

%end_if%

This won't display anything unless you attempt to increase the quantity past the available inventory or attempt to add a product to the basket which is out of stock. The message itself (the value stored in g.InventoryMessage) is not currently configurable but you don't have to display it and could instead do something like:

%begin_if|len('%var|g.InventoryMessage|%')|%

There is insufficient inventory on hand to add that product or change the quantity

%end_if%



Last update: 2007-11-16 14:20
Author: Thor
Revision: 1.1

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