Jump to content

Recommended Posts

Hi to all.

We need to place a tracking code(like a Facebook pixel) in order-confirmation.tpl to register every order and make a report with the total order value to the marketing partner. we need to find the variable for both total order value and the order id, please check the link below:

<img src="https://track.xxxx.se/track/6211/?hash=XXXXX&value=$ORDER_VALUE&reference=$ORDER_REFERENCE" width="0" height="0">

and the explation is:

Please note that $ORDER_VALUE is a placeholder which must be replaced with the total amount of the order. The amount should be in and in the format "XXX[.YY]" without the quotes. Valid examples are: "123", "123.45", "123,45"

Please note that $ORDER_REFERENCE is a placeholder which should be replaced with a unique reference for the tracked event. Such as order id for a sale or an email address for a lead.

 

we tried anything, like $subtotal - $totals.total.value - $subtotal.value and so on but nothing works.

the code above is places in 

theme/template/checkout/order-confirmation.tpl

 

Thanks!

BR

Simon

 

Edited by simonfard (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...