Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PriceRunner


wacdesign

Recommended Posts

I've been told to install this tracking code by price runner but I don't know how to get the missing attributes they request or where to paste the code.

 

Any ideas?

 

 

See below

 

Enterprise ID: 1526879

Action ID: 349347

 

Pixel Template

<img src="https://www.emjcd.com/u?AMOUNT=<AMOUNT>&CID=<ENTERPRISEID>&OID=<OID>&TYPE=<ACTIONID>&CURRENCY=<CURRENCY>&METHOD=IMG"height="1" width="20">

 

Pixel variables

<AMOUNT> - this should be replaced with the shopping cart amount

<OID> - this should be replaced with the unique shopping cart order id

<CURRENCY> - this should be replaced with the shopping cart 3 digit iso currency reference, in this case GBP

Link to comment
Share on other sites

@@wacdesign

 

Which page of the site does this need to be on?

 

I have seen this sort of thing on checkout_success.php before and the variables were set in checkout_process.php.

 

In checkout success page you could get these variables:

 

$order->info['currency']
$order->info['total']
$orders['orders_id']

Matt

Link to comment
Share on other sites

@@wacdesign

 

This is untested but should work...

 

in checkout_success.php find:

 

require(DIR_WS_INCLUDES . 'template_top.php');

 

Right above that add:

 

$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");
 $orders = tep_db_fetch_array($orders_query);

 require(DIR_WS_CLASSES . 'order.php');
 $order = new order($orders['orders_id']);

 

Then where ever you want the affiliate code to go:

 

<?php echo '<img src="https://www.emjcd.com/u?AMOUNT=<' . $currencies->display_price($order->info['total'])
. '>&CID=<ENTERPRISEID>&OID=<' . $orders['orders_id'] . '>&TYPE=<ACTIONID>&CURRENCY=<' . $order->info['currency']
. '>&METHOD=IMG"height="1" width="20">';?>

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...