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/03/3One 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%.0)
Last update: 2004-12-10 09:38
Author: Support
Revision: 1.0
You cannot comment on this entry
Records in this category
- The total on my checkout pages are not correct. Why?
- How do I display the "thank you" message on the invoice page?
- On the basket pages I would like to display the total w/ the shipping included but NOT with the tax included. Is this possible?
- Is there a way to "Limit" the number of characters that can be entered into the "address" or any other field of the ACNT and OINF pages?
- What are the tokens for displaying the basket attributes?
- Hello, I am using the Affiliate Login module and the other page templates module. How do I get the affilate LOGN_header to show up for the login included in the other page templates module?
- How do I modify the Custer Login screen so that the customer is redirected to the Account screen rather than the storefront?
- The footer of my basket page has %OUI% in it and various OpenUI tokens. However, when I display it on the Other Page Templates generated basket page with the %bask_ftr% token, the %OUI% and other OpenUI tokens show in the page. How do I fix this?
- I'm using the %baskettotalallF% token on the OSEL screen but it is not displaying the correct total. Why?
- How do I consolidate the checkout screens so that the "shipping and billing selection" lists are on the "Customer Information" page?
- I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
- 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?
- Can I display the "related products" of the products in the basket in a single listing?
- Is it possible to display a "checkout" link on the basket page?
- Is it possible to display a "continue shopping" link on the basket page?
- How do I make the "Account Login" screen compatible with other modules such as the Order Status Manager and Affiliate Manager?
- The %logn_hdr% does not display the correct header when the customer is logging out.
- The "Missing Attributes" screen is acting like the Product Listing screen! Help!?
- How do I display the attributes in the basket?
- How can I display a "checkout" link on the basket page which points to the correct screen depending on whether or not the customer is logged in?
- I'm using the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_PAGETEMPLATES) and I would like to display the "Login Header", "Login Footer", "Account Header", and "Account Footer" on the customer login and account pages for affiliates signing up to be affiliates. How do I do this?
- How do I make the checkout screens compatible with the Gift Certificate Manager (http://vikingcoders.com/go.mv?ID=BROK_CERTIFICATES)?
- How do I make the Customer Account screen compatible with List Manager?
- How do I make the Login screen compatible with the Order Status Manager (http://vikingcoders.com/go.mv?ID=BROK_ORDERSTATUS) and Order Status - Login (http://vikingcoders.com/go.mv?ID=BROK_ORDERLOGIN)?
- How do I make the module compatible with the List Manager (http://vikingcoders.com/go.mv?ID=BROK_WISHLIST) module?
- How do I make the Login screen compatible with the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_AFFILIATES) and Affiliate Manager- Login (http://vikingcoders.com/go.mv?ID=BROK_AFFILATELOGIN)?
- How do I set the time zone so that the %time% and %date% tokens reflect the time zone of my store and not my server?














