Jump to content

How do I get the delivered id_country selected on checkout.


usasat

Recommended Posts

I need to get the delivered id_country selected on checkout  tpl  file. I know the $id_address_delivery, but not the id_country.

 

<script>

    var idAddress_delivery = {$id_address_delivery|intval};
    var idCountry_delivery = ???????

</script>

 

Please any one Help.
Thank you

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

In order to use the variable in your theme file, the variable has to be set in your controller (PHP) file.

 

the country ID is included in the address, so you need to load the address object by $id_address_delivery and then assign it to smarty variable then you can use that object in your theme file. 

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