Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sales Tracking Contribution


thebigt

Recommended Posts

Ok i have a question about adding more values to the contribution, as is it only gets information on the (order id) and (total Price)

i would like it to also include the names qty of prducts purchased,

plus a price of each item.

i need for someone to shed some lite on this, how do i make it happen.

here is the code for the contribution:

this is what's added to catalog/checkout_process.php

// 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

this gooes in catalog/checkout_success.php

// 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

My question is this how and where do i get it to register the variables,

and how do i call them in checkout sucess.

Thx for any input

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...