motion2082 Posted January 22, 2018 Share Posted January 22, 2018 (edited) Hi guys, I'm looking to implement a MyShopping Tracking code into my Prestashop website. They currently don't have a tutorial on how to implement it for PS. This is an example of how to do it in Oscommercehttp://myshopping.smartertrack.com/kb/a2292/prestashop-sales-tracking.aspx The code is <img src="https://www.myshopping.com.au/sale.asp?mid=YourMerchantID&amount=<?php echo number_format($order_total_result[value],2) ; ?>&order=<?php echo $order_id ; ?>" width="1" height="1"> I think I need to implement this into the order-confirmation.tpl but I'm not 100% sure how to do it as PS doesn’t allow php tags. I thought about putting it into the controller or class for order but these files are php only, not a mix. Can anyone provide any guidance on how this would work in PS 1.6.1.x? Regards, Motion Edited January 22, 2018 by motion2082 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 26, 2018 Share Posted January 26, 2018 Motion, I don't think smarty can handle php like that in a template, not natively in prestashop at least. See if this video helps https://www.youtube.com/watch?v=tvSQToK9PDc&t=2s You will have to add a hookDisplayOrderConfirmation function, and return your content. I believe order data is assigned to $params 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