diff --git a/controllers/front/OrderConfirmationController.php b/controllers/front/OrderConfirmationController.php index 1b40ede70..3beba0cbe 100644 --- a/controllers/front/OrderConfirmationController.php +++ b/controllers/front/OrderConfirmationController.php @@ -32,6 +32,7 @@ class OrderConfirmationControllerCore extends FrontController public $id_cart; public $id_module; public $id_order; + public $reference; public $secure_key; /** @@ -57,6 +58,7 @@ class OrderConfirmationControllerCore extends FrontController Tools::redirect($redirectLink.(Tools::isSubmit('slowvalidation') ? '&slowvalidation' : '')); $order = new Order((int)($this->id_order)); + $this->reference = $order->reference; if (!Validate::isLoadedObject($order) || $order->id_customer != $this->context->customer->id || $this->secure_key != $order->secure_key) Tools::redirect($redirectLink); $module = Module::getInstanceById((int)($this->id_module)); @@ -82,6 +84,7 @@ class OrderConfirmationControllerCore extends FrontController { $this->context->smarty->assign(array( 'id_order' => $this->id_order, + 'reference_order' => $this->reference, 'id_order_formatted' => sprintf('#%06d', $this->id_order) )); /* If guest we clear the cookie for security reason */ diff --git a/themes/default/order-confirmation.tpl b/themes/default/order-confirmation.tpl index 53953ce6c..62ed2744a 100644 --- a/themes/default/order-confirmation.tpl +++ b/themes/default/order-confirmation.tpl @@ -40,8 +40,8 @@
{if $is_guest}

{l s='Your order ID is:'} {$id_order_formatted} . {l s='Your order ID has been sent to you via e-mail.'}

- {l s='Follow my order'} - {l s='Follow my order'} + {l s='Follow my order'} + {l s='Follow my order'} {else} {l s='Back to orders'} {l s='Back to orders'}