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 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)
- Is it possible to display a link in Phone ... (2008-08-06 12:05)
Top 10 
- 2754 views:
Adding Tokens to Evaluate Expressions - 2698 views:
Is there a way to "Limit" the number of ... - 2654 views:
Why won't you call me for technical support? I ... - 2549 views:
Are license keys valid for more than one store? ... - 2447 views:
I'm trying to enter a license key and get ... - 2425 views:
How do I install a module? - 2286 views:
How do I check for a module upgrade? - 2255 views:
How can display and change the parameters of an ... - 2097 views:
The total on my checkout pages are not correct. ... - 1932 views:
I have select and radio type attributes in my ...
















