Is it possible to display data about the referring affliate on the Merchant pages and on the Invoice screen and notification emails?
Yes it is. On each page in the store and during the processing of the order, the Affiliate Manager defines a number of global variables which can be accessed in the store and on the Invoice page and notification emails (for you developers out there, these varialbes are available at any point after the module's FulfillmentModule_ProcessOrder() function is processed).
The data can be accessed with a component token of the form:
&mvt:global:AffiliateData:code;
This token would display the referring affiliate's "code". It is arrived at by getting the variable below, g.AffiliateData:code, removing the g., adding:
&mft:global:
at the front, and ; at the end.
The global variables that are defined for the affiliate include:
g.AffiliateData:code
g.AffiliateData:id
g.AffiliateData:fname
g.AffiliateData:lname
g.AffiliateData:email
g.AffiliateData:company
g.AffiliateData:phone1
g.AffiliateData:phone2
g.AffiliateData:fax
g.AffiliateData:address
g.AffiliateData:city
g.AffiliateData:state
g.AffiliateData:country
g.AffiliateData:payout (the payout for this particular order)
An example application would be to display an affiliate specific log in the store. If you name your logo graphics based on the affiliate's code (eg. alpha_logo.jpg, beta_logo.jpg, etc. for affiliates with code alpha, beta, etc.) you can "construct" the image path for the referring affiliate with:
<img src="&mvt:global:AffiliateData:code;_logo.jpg">
Last update: 2008-04-10 15:08
Author: Thor
Revision: 1.2
You cannot comment on this entry
Most Recent FAQ Entries: 
- When I attempt to add one of your module's ... (2008-05-09 13:40)
- Creating "Google Friendly" Product Links (2008-05-05 12:19)
- How do I display data from third party modules ... (2008-05-02 15:58)
- is there a way to change the font color ... (2008-04-15 22:11)
- Is it possible to display data about the referring ... (2008-04-10 15:08)
Top 10 
- 2167 views:
Why won't you call me for technical support? I ... - 2073 views:
Are license keys valid for more than one store? ... - 2010 views:
I'm trying to enter a license key and get ... - 1953 views:
Is there a way to "Limit" the number of ... - 1935 views:
Adding Tokens to Evaluate Expressions - 1921 views:
How do I install a module? - 1826 views:
How can display and change the parameters of an ... - 1781 views:
How do I check for a module upgrade? - 1674 views:
The total on my checkout pages are not correct. ... - 1632 views:
I have select and radio type attributes in my ...
















