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: 
- 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 
- 2525 views:
Adding Tokens to Evaluate Expressions - 2512 views:
Why won't you call me for technical support? I ... - 2491 views:
Is there a way to "Limit" the number of ... - 2403 views:
Are license keys valid for more than one store? ... - 2310 views:
I'm trying to enter a license key and get ... - 2273 views:
How do I install a module? - 2135 views:
How do I check for a module upgrade? - 2134 views:
How can display and change the parameters of an ... - 1961 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















