Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Getting Store Address Via Smarty Rate Topic   - - - - -

 
  • MadHatter
  • Newbie
  • Trial users
  • Join Date: 28-Oct 14
  • 8 posts

Posted 06 May 2015 - 09:20 AM #1

Hi,
How do you get the country name from a store's information? I've got the data from
$settings.Company
but but
$settings.Company.company_state
and
$settings.Company.company_country
return codes rather than names. Is there an array I can access via smarty to get the name of the country/state from the code?

 

Posted 06 May 2015 - 09:27 AM #2

hi,

to get country name please use this:
{$settings.Company.company_country|fn_get_country_name}

to get state name please use this:
{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}

best regards,
WSA team

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 06 May 2015 - 09:27 AM #3

Please use:

{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}

and

{$settings.Company.company_country|fn_get_country_name}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 08 May 2015 - 04:54 PM #4

please let us know whether provided solution helps you or not