Jump to content

Need to get Order ID and Order Total for tracking code.


cbenci

Recommended Posts

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

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.

  • Like 1
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...