Miva Merchant 4 Module FAQs » Storefront Template (BROK_SFNTTEMPLATE)
The Storefront Template has been tweaked up a bit to permit this in (version 4.16c compiled, version 4.11 uncompiled).
This version fixes a few bugs in the display/processing of third party tokens. It also adds a new third party token structure:
%modules2|module code|position|%
This token works exactly like the %modules| token and calls the same function in the third party module but it is processed last. So you can use other tokens within this token to represent product codes, etc.
For example, in my testing, I used the token:
%module2|addtext|%random|code|01|%|%
to pass a the product code of a random product to the third party module. So, the token %random|code|01|% is processed first and replaced with the product code, then at the end, the %module2 token itself is processed. Note that %module| tokens continue to be processed first, before any other tokens (this permits your module to insert tokens into the template which will later be processed.
Most Recent FAQ Entries:
Top 10
Using %random Token to Pass Data to a Third Party Module Using %module|
How can I pass the product code (or any other data) from a randomly selected product (using the %random token) to a third party module using the %module| token?
The Storefront Template has been tweaked up a bit to permit this in (version 4.16c compiled, version 4.11 uncompiled).
This version fixes a few bugs in the display/processing of third party tokens. It also adds a new third party token structure:
%modules2|module code|position|%
This token works exactly like the %modules| token and calls the same function in the third party module but it is processed last. So you can use other tokens within this token to represent product codes, etc.
For example, in my testing, I used the token:
%module2|addtext|%random|code|01|%|%
to pass a the product code of a random product to the third party module. So, the token %random|code|01|% is processed first and replaced with the product code, then at the end, the %module2 token itself is processed. Note that %module| tokens continue to be processed first, before any other tokens (this permits your module to insert tokens into the template which will later be processed.
Last update: 2003-07-30 22:39
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 
- 2528 views:
Adding Tokens to Evaluate Expressions - 2515 views:
Why won't you call me for technical support? I ... - 2496 views:
Is there a way to "Limit" the number of ... - 2405 views:
Are license keys valid for more than one store? ... - 2313 views:
I'm trying to enter a license key and get ... - 2276 views:
How do I install a module? - 2137 views:
How do I check for a module upgrade? - 2135 views:
How can display and change the parameters of an ... - 1964 views:
The total on my checkout pages are not correct. ... - 1846 views:
I have select and radio type attributes in my ...
















