[email protected] Posted September 21, 2016 Share Posted September 21, 2016 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 More sharing options...
[email protected] Posted September 23, 2016 Author Share Posted September 23, 2016 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 More sharing options...
Filipa-HeyDigital Posted September 1, 2017 Share Posted September 1, 2017 (edited) Hi, You use the same param from the order confirmation or you the the param from the paypal? Edited September 1, 2017 by Filipa-HeyDigital (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now