Jump to content

Implementing Paydot tracking pixel?


Recommended Posts

I have a problem with implementing tracking pixel from paydot. On the paydot website i got following information:

Add the following code in the OrderConfirmationController.php:

class OrderConfirmationController extends OrderConfirmationControllerCore
{
public function displayContent()
{
global $cart;
self::$smarty->assign('shippingCost', $cart->getOrderShippingCost());
self::$smarty->assign('orderTotal', $cart->getOrderTotal());
parent::displayContent();
}
}

This should pass the order details to the order confirmation/thank you page. With this working, you should now be able to insert variables in to our tracking code to send us all the required infoormation.


Here is the tracking code example:

 

<img src="https://track.paydot.com/sale.php?value={$orderTotal}&oid={$id_order}&sid=%%SITEID%%&pid=DEFAULT" width="1" height="1">

I dont know how to implement the second part, that is, i dont know where to place: <img src="https://track.paydot.com/sale.php?value={$orderTotal}&oid={$id_order}&sid=%%SITEID%%&pid=DEFAULT" width="1" height="1">

 

i tried to place this code to

themes/your_theme/order-confirmation.tpl

but i can not pass verification test on paydot.

 

Does anyone have some explanation on this?

 

Thanks in advance

 

Link to comment
Share on other sites

×
×
  • Create New...