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: 
- I have the UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2524 views:
Adding Tokens to Evaluate Expressions - 2511 views:
Why won't you call me for technical support? I ... - 2491 views:
Is there a way to "Limit" the number of ... - 2403 views:
Are license keys valid for more than one store? ... - 2310 views:
I'm trying to enter a license key and get ... - 2273 views:
How do I install a module? - 2135 views:
How do I check for a module upgrade? - 2134 views:
How can display and change the parameters of an ... - 1961 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















