I'm running into problems in that some of my tokens are not being processed correctly. For example, I'm trying to do this: %begin_if|%module|modcode:position%|% ... %end_if%but it just generates errors or the %module simply shows up on the page. What could be wrong?
(2004/02/19)One common cause for this sort of error is the "order" in which tokens are processed. For example, in the instance above, the %module|modcode:position|% token is processed AFTER the %begin_if|expression|%...%end_if%. So when the %begin_if|expression|% token attempts to evaluate the expression it runs into trouble in that the expression is simply a token.
In order to work around this I have upgraded the module to "standardize" the order in which tokens are processed:
1. %module1|..|% (%module1|..|% tokens are processed exactly like %module|...|% tokens except they are processed before all other tokens)
2. %OUI1% (If you put the %OUI1% at the beginning of the field instead of %OUI%, the OpenUI tokens will be processed at this point)
3. this module's tokens
4. %module|..|% (the usual %module|..|% token)
5. %OUI% (the usual %OUI%) token)
If you are experiencing issues that you think might be attributed to the order of processsing, adjust your template to "order" the processing. For example, in the above instance changing %module|modcode:position|% to %module1|modcode:position|% will force the % module token to be evaluated first. Similarly, if you want the OpenUI tokens to be processed before any other tokens (except the %module1 tokens% instead of using %OUI% at the beginning of the template field use %OUI1%.
Last update: 2004-12-07 13:24
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
Top 10 
- 2852 views:
Adding Tokens to Evaluate Expressions - 2784 views:
Is there a way to "Limit" the number of ... - 2729 views:
Why won't you call me for technical support? I ... - 2619 views:
Are license keys valid for more than one store? ... - 2512 views:
I'm trying to enter a license key and get ... - 2496 views:
How do I install a module? - 2349 views:
How do I check for a module upgrade? - 2316 views:
How can display and change the parameters of an ... - 2164 views:
The total on my checkout pages are not correct. ... - 1976 views:
I have select and radio type attributes in my ...
















