Hi folks,
I have signed up with shareasale.com affiliate program, but was unable to implement the tracking code with MS2. I have written shareasale.com for my problem and what they advised me was to place this code into checkout_process.php:
// Begin Affiliate Program - Sales Tracking
$orders_total=$currencies->format($cart->show_total()- $total_tax);
tep_session_register('orders_total');
$orders_id=$insert_id;
tep_session_register('orders_id');
// End Affiliate Program - Sales Tracking
In the page: catalog/checkout_success.php, just below the line,
<h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>
add the following code:
<!-- Start Affiliate Program - Sales Tracking -->
<?php
echo '<img
src="https://shareasale.com/sale.cfm?amount='.$orders_total.'&tracking='.$or
ders_id.'&transtype=sale&merchantID=XXXX" width="1" height="1">';
tep_session_unregister('orders_total');
tep_session_unregister('orders_id');
?>
<!-- // End Affiliate Program - Sales Tracking -->
Where you replace XXXX with your merchant ID number.
However it didn?t work. I would like to know if anyone has implemented the code in order to work with osCommerce MS2 and 2checkout V2. I don?t know if there is a difference whether it is 2checkout, Paypal or any other payment processor, but I guess that it matters since the parameters 2checkout returns after a sale is generated are different from those with Paypal for example.
Anyone?!? :huh: