Jump to content

delivery country in order-confirmation


zac

Recommended Posts

  • 10 months later...
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

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...