Hi ,
After going through your code i saw you are using get_locale() function (file ‘currency-switcher-woocommerce\includes\class-alg-wc-currency-switcher.php’ line 125) to fetch the current set locale, which i always returning en_Us , due to which the currency set is always dollar.
I am using polylang as language convertor.
Hi,
I have been trying to use this locales functionality in my website but i dont know where am i doing it wrong, as the site is always showing the same currency(i.e dollar) everywhere.
My Languages settings
Currency Languages (Locales) -> checked
Enter Locales as Comma Separated Text -> checked
Always Use Locale to Assign Currency -> checked
#1 [GBP] Pound sterling -> fr_FR
#2 [USD] United States dollar -> en_US
Regards
Pankaj
-
This reply was modified 8 years, 3 months ago by pankajstws.