Jump to content

order ID and order amount on confirmation page


Michielgb

Recommended Posts

Hi there,

 

I'm fairly new to PrestaShop and although I understand the basics, I can't seem to figure out how to display the order ID and total amount of the order on the order-confirmation page.

 

Somehow I have to include these variables in the OrderConfirmationController so that I can display them on the order-confirmation.tpl page itself, right?

 

Does anyone know?

 

Thnx in advance.

 

*Edit: woops, asked a little too soon. For those reading, add in the controller:

 

 

self::$smarty->assign('orderid', $this->id_order);

self::$smarty->assign('amountpaid', $order->total_paid_real);

 

Add in the tpl within some html:

 

{$orderid}

{$amountpaid}

Edited by Michielgb (see edit history)
Link to comment
Share on other sites

  • 2 years 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...