cbenci Posted October 12, 2016 Share Posted October 12, 2016 Hi there, I need to put some php code into the order confirmation page. myshopping.com.au have sent me the code to add but have told me I need to work out which variable names to substitute to make it work with Prestashop. Here is the code; <img height ="0" width ="0" src ="https://www.myshopping.com.au/sale.asp?mid=18284822&amount=<? echo $TotalSalesValue ?>&order=<? echo $OrderNumber ?>" /> So, I'm assuming I add it to the order-confirmation.tpl and substitute $TotalSalesValue and $Order Number with the appropriate Prestashop variables - can anyone help with this? Many thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted October 12, 2016 Share Posted October 12, 2016 Try {$total_to_pay} for the total sales value and {$objOrder->id} or {$objOrder->reference} for the order number, depending on whether you want the integer order code or textual order code. Those should work if you're using a module in the displayOrderConfirmation hook. 1 Link to comment Share on other sites More sharing options...
cbenci Posted October 12, 2016 Author Share Posted October 12, 2016 Thanks Rocky, you're a champion! I'll give it a try tomorrow. 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