UltraCart integration
A hosted shopping cart solution.
UltraCart integrates using XML Postback.
Note! This is description ofintegration with UltraCart. Make sure that your web server supports HTTPS (secure sockets).
It is possible to track per order and per product commissions, refunds, coupons and Lifetime Commissions. The plugin also gives you an option to create an affiliate account for each customer automatically.
Activate UltraCart in PAP
- Go to Plugins
- Find UltraCart integration plugin and click Activate
- After activation, find this plugin again and click Configure
- Select number of custom field that can be used for PAP (default is 1)
Setting Transmit URL in UltraCart for Merchants
Go to UltraCart for Merchants -> Configurations -> (Back Office) -> XML Post back or click https://secure.ultracart.com/merchant/configuration/xmlPostbackLoad.do
Then set Transmit to URL to:
https://URL_TO_PostAffiliatePro/plugins/UltraCart/ultracart.php
If you wish to track also recurring charges and grant commission for them (available for PAP/PAN version 5.3.27.6 and higher), then set also the Transmit Auto Order Status to URL to:
https://URL_TO_PostAffiliatePro/plugins/UltraCart/ultracart.php
and make sure the Recurring Commissions feature is turned on in the Features section in the merchant panel. As soon as it is turned on, click the Configure button next to it and check in the “Use only API to trigger commissions (planned task will be disabled)” and “Pending recurring regulation will create pending commission” check box.
Afterwards, when you are setting up a recurring commission in a campaign, make sure that for the period of recurrence you choose varied. It is essential!
Adding following code into EVERY UltraCart buton
Be sure to add this code to every button for UltraCart.
<input type="hidden" name="CustomField1" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
Note that in this code we are using CustomField1 – if you already use it for something else, for this integration use another one. You can choose from 5 custom fields. Take care you selected the custom field that is specified in Plugin Configuration.
UltraCart Link Integration
Now add the following code for EVERY UltraCart link. Please make sure that link you have has id=”pap_7ty8fsk8a”.
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script><script type="text/javascript">PostAffTracker.setAccountId('Account_ID');
PostAffTracker.writeCookieToLink('pap_7ty8fsk8a', 'CustomField1');
</script>
Upsell handling
If you want to track also Upsell offers, it is easy. If you did the previous steps correctly, it will be tracked automatically.