defender39 Posted December 6, 2003 Posted December 6, 2003 this code is working for me with one exception...I think I am getting the order_wrong at the shareasale site. I emailed them to make sure that I am suppose to send it to them and it appears to be in the code. But how do I correct it. On my site for example a sale would be order id 800 and on the SAS site it is 1656. Not a match and it makes it incredibly hard to match up orders if I have to make a cancelling in the SAS. Help...Johnson where are you! // Begin Affiliate Program - Sales Tracking $orders_total=$currencies->format($cart->show_total()- $total_tax); tep_session_register('orders_total'); $orders_id=$order_products_id; tep_session_register('orders_id'); // End Affiliate Program - Sales Tracking --------- 2).Find This Line in catalog/checkout_success.php <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td> </tr> </table></td> </tr> Add After it: // Start Affiliate Program - Sales Tracking <?php echo '<img src="https://shareasale.com/sale.cfm?amount='.$orders_total.'&tracking='.$orders_id.'&transtype=sale&persale=&perlead=&perhit=&merchantID=0001" width=1 height=1">'; tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); ?> // End Affiliate Program - Sales Tracking Quote
defender39 Posted December 7, 2003 Author Posted December 7, 2003 Does this line make sense? $orders_id=$order_products_id; Should it really be order_products_id? Quote
defender39 Posted December 7, 2003 Author Posted December 7, 2003 $orders_id=$insert_id; thats the proper variable to use Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.