Jump to content

Paypal and Facebook purchase pixel


info@babylinoshop.co

Recommended Posts

Hello everyone,

It's days I'm trying to make a FB pixel work on my website but I cannot find the right file where the script needs to be inserted to be fired after purchase confirmation by Paypal module

 

can anyone help me? I'd need to understand where the module redirects users once the payment has been accepted by paypal, actually we are using site redirection because paypal frame is not working, i order to fire the script only when the user is redirected to the shop with the payment confirmation.

 

thanks in advance

 

ciao

Francesca 

Link to comment
Share on other sites

Problem solved, easier than expected!
just placed script code on /modules/paypal/views/templates/front/order_confirmation.tpl[/size]
inside if order cycle, on my code is line 45
 
{if $order}
<p>{l s='Total of the transaction (taxes incl.) :' mod='paypal'} <span class="bold">{$price|escape:'htmlall':'UTF-8'}</span></p>
    <p>prova pixel FB</p>
    <script>
 
fbq('track', 'Purchase', { value: '{$price}', currency: 'EUR' });
 
</script>

Link to comment
Share on other sites

  • 11 months later...

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