Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


{docurl}

Adding Tokens to Evaluate Expressions

Is there a token that I can use to evaluate expressions, such as Products.d.price - Products.d.cost? (2003/07/11)

This feature was added in a recent upgrade (version 4.88 compiled, 4.88 uncompiled). The %var| token will can now evaluate and display an expression or variable. For example, to display the price - cost for a product you would use a token of the sort:

%var|Products.d.price - Products.d.cost|%

With that upgrade I also modified the conditional tokens %begin_if| and %begin_notif| to be able to evaluate expressions. So if, for example, you wanted to display text only if the product has weight of 3, you could use:

%begin_if|Products.d.weight EQ 3|%
This product has a weight of 3!
%end_if%



Last update: 2003-07-28 23:45
Author: Support
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