Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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  

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...