usasat Posted May 5, 2017 Share Posted May 5, 2017 (edited) 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 May 5, 2017 by usasat (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted May 5, 2017 Share Posted May 5, 2017 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 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