zac Posted January 24, 2017 Share Posted January 24, 2017 Hi there, how can I get the delivery country as variable on order-confirmation page? Thanks, c. Link to comment Share on other sites More sharing options...
BonPresta Posted December 9, 2017 Share Posted December 9, 2017 On 24.01.2017 at 5:46 PM, zac said: Hi there, how can I get the delivery country as variable on order-confirmation page? Thanks, c. public function hookOrderConfirmation() { $order = new Order((int)Tools::getValue('id_order')); $address_delivery = new Address((int)$order->id_address_delivery); $delivery_country = new Country($address_delivery->id_country); $this->context->smarty->assign(array( 'delivery_country' => $delivery_country->iso_code, )); return $this->display(__FILE__, 'template.tpl'); } 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