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.
{docurl}
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
Records in this category
- How to Conditionally Display Based on Customer Login
- Prices Displaying Incorrectly In Discount Module
- Token to Display a Product's Data from Viking Coder's Additional Fields Manager
- Token to Display Customer's IP Address
- Token to Evaluate Expressions such as: Products.d.price - Products.d.cost
- Using OpenUI Tokens in this Module
- Using the %valuesave% Token in this Module
- Using a Token to Display a "Randomly" Selected Product's Category
- Using %random Token to Pass Data to a Third Party Module Using %module|
- Controlling the Size of Product Images
- How to Modify the mmui.mv File IF Product Page Templates is Already Installed














