Generic Affiliate Integration allows you to integrate Merchant with an unlimited number of 3rd party affiliate programs such as My Affiliate Program, clickXchange.com, FineClicks.com, clixGalore, etc. Example integration code for ShareASale.com is provided in the module's documentation. Typically affiliate networks provide cut/paste HTML to insert on the invoice with placeholders for variables such as order number that should be replaced with the actual order number. This module allows you to replace these placeholders with their respective dynamic variables by using "tokens". The following tokens are available:
- %order_number% - order number
- %order_total% - order total
- %order_subtotal% - order total before any order charges/discounts (tax, shipping, coupons, etc.)
- %order_subtotal_adjusted% - the order total before any order charges (tax, shipping, etc.) but after any discounts (any negative order charges, such as coupons)
When an order is placed, any HTML that has been added will be inserted into the bottom of the invoice, and any tokens will be converted into their respective values. In other words, the HTML code given to you by your affiliate program will automatically be calculated and sent without you having to make any code changes to your invoice page.
Compatibility Notes
This module is compatible with MMUI and OpenUI for Miva Merchant 4.12 or higher. However, for versions prior to 4.12, it requires the OpenUI. Version 3.9 or higher of the Miva Engine is also required.