Miva Merchant 4 Module FAQs » Product Page Templates (BROK_PRODTEMPLATES )


Using 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.73c compiled, 4.71
uncompiled). The %var| token 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 this upgrade, these conditional tokens were modified to evaluate expressions:

%begin_if| and %begin_notif|

If 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!

Last update: 2003-07-29 19:51
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