Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

For Affiliate Sales Conversion Code Require Oscommerce Variable Name


naal1

Recommended Posts

Posted

Hi,

 

Can anybody help me to setting up affiliate network sales tracking code

 

Below is Sample of Sales Tacking code of Affiliate Network to track sale on Oscommerce website.

 

<script language="JavaScript" type="text/javascript">

var amount = "{SALE_AMOUNT}"; //ACTION AMOUNT

var order = "{ORDER_ID}"; //INSERT UNIQUE ORDER NUMBER

</script>

 

Pleas tel me what will be Order Id and Amount Id variable on Oscommerce checkout_sucess.php page so i will use that varible in Affiliate Sale Tracking

 

I need to replace affiliate tracking code for eg "{SALE_AMOUNT}" and "{ORDER_ID}". with Oscommerce Variable??

 

So i can track my actual sales and order id for that particular order that come through affiliate network.

Posted

order id = $insert_id

total = $order->info['total']

 

<script language="JavaScript" type="text/javascript">

var amount = "<?=$insert_id?>"; //ACTION AMOUNT

var order = "<?=$order->info['total']?>"; //INSERT UNIQUE ORDER NUMBER

</script>

 

If possible, move the script to the checkout_process.php page, before the redirect to the success page and before the vars are unset. Even better to the payment modules after_process functions.

Posted
order id = $insert_id

total = $order->info['total']

 

<script language="JavaScript" type="text/javascript">

var amount = "<?=$insert_id?>"; //ACTION AMOUNT

var order = "<?=$order->info['total']?>"; //INSERT UNIQUE ORDER NUMBER

</script>

 

If possible, move the script to the checkout_process.php page, before the redirect to the success page and before the vars are unset. Even better to the payment modules after_process functions.

 

Thanks for your reply..

 

I am actually going to past that affiliate Sales tracking code on checkout_process.php page only. Will that work know..?

 

Thank you once again

Posted

You would have to test it.. also you could add a javascript alert statement to check the variables.

  • 1 month later...
Posted
You would have to test it.. also you could add a javascript alert statement to check the variables.

 

I am in the same boat here. I need to retain the variable data for order id and order total so they can be passed through to a piece of javascript on the checkout_success.php page, where the javascript is executed and the affiliate is credited.

 

I see that the order data is purged before checkout_process.php redirects through to checkout_success.php.

 

Is there a way to acheive this? It doesn't seem to be possible to excecute the javascript at checkout_process before the data is cleared.

 

Thanks

 

KB

Network Webcams - The IP Camera Specialists

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...