I'm using ZenCart 1.3.8a and am using PayPal Website Payments Standard for all transactions. It is set up so that the customer returns to my site, to a Thank You page, after payment on PayPal has been made. I'm trying to implement ShareASale affiliate tracking code, but am at a loss.
The ShareASale site provides this info for integration:
Tracking Code details for PayPal Website Payments Standard
Unfortunately, integrating with PayPal Website Payments Standard is more difficult than most shopping carts. You will need to setup their Payment Data Transfer system before integrating with ShareASale. See PayPal's documentation and sample code here:
https://www.paypal.com/cgi-bin/websc...-intro-outside
Unfortunately, ShareASale is unable to help in setting up the Payment Data Transfer system. If you require assistance you should contact PayPal directly.
Once you have the Payment Data Transfer system running, you can use the following tracking codes in your Auto-Return script:
ASP
Response.Write("<img src=""https://shareasale.com/sale.cfm?amount=" & mcGross & "&tracking=" & txToken & "&transtype=SALE&merchantID=XXXX"" width=""1"" height=""1"">")
PHP
echo ("<img src=\"https://shareasale.com/sale.cfm?amount=$amount&tracking=$tx_token&transtype=SALE&merchantID =XXXX\" width=\"1\" height=\"1\">");
Where you replace XXXX with your ShareASale merchant ID number.
For how to install with ZenCart, they provide this:
Tracking Code details for ZenCart for ZenCart version 1.3.8 and higher:
You will be marking changes to the following file:
/includes/templates/DEFAULT/checkout_success/tpl_footer.php
Where DEFAULT is the name of the current template group that you are using. If the checkout_success folder does not exist, you can create it. If the tpl_footer.php file does not exist, you can create it. Add the following code to the tpl_footer.php page:
<font face="trebuchet ms, verdana" point-size="10" size="-1"><?php if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) { if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) { $_SESSION['affiliate_order_id'] = $zv_orders_id; $commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', ''); echo '<img src="https://shareasale.com/sale.cfm?amount=' . $commissionable_order_formatted . '&tracking=' . $order_summary['order_number'] . '&transtype=sale&merchantID=XXXX" width="1" height="1">'; } } ?>
Where you replace XXXX with your merchant ID number. </font>
I have tried placing both versions of code in my tpl_footer.php file which is located in a checkout_success folder. I have tested both, but neither test is being recognized by ShareASale.
Do I need to add any other code to the tpl_footer.php or any other file? If so, can someone direct me on what to do?
my site is: www.pennylanepapersgiftbags.com
thanks so much!




