Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)
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%
Most Recent FAQ Entries:
Top 10
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
You cannot comment on this entry
Most Recent FAQ Entries: 
- When I attempt to add one of your module's ... (2008-05-09 13:40)
- Creating "Google Friendly" Product Links (2008-05-05 12:19)
- How do I display data from third party modules ... (2008-05-02 15:58)
- is there a way to change the font color ... (2008-04-15 22:11)
- Is it possible to display data about the referring ... (2008-04-10 15:08)
Top 10 
- 2167 views:
Why won't you call me for technical support? I ... - 2073 views:
Are license keys valid for more than one store? ... - 2010 views:
I'm trying to enter a license key and get ... - 1953 views:
Is there a way to "Limit" the number of ... - 1934 views:
Adding Tokens to Evaluate Expressions - 1921 views:
How do I install a module? - 1826 views:
How can display and change the parameters of an ... - 1781 views:
How do I check for a module upgrade? - 1674 views:
The total on my checkout pages are not correct. ... - 1632 views:
I have select and radio type attributes in my ...
















