Plugin is not updating main currency WRONG DATA. CHECK YOUR WOOCS OPTIONS!
-
Hello i have problems with free version of the plugin.
I tried to add 2 currencies EUR and PLN
The text “WRONG DATA. CHECK YOUR WOOCS OPTIONS!” is displayed next to the price. (i couldn’t solve it using solutions found in Google https://currency-switcher.com/wrong-data-check-your-woocs-options/ etc )
It seems that the plugin is not updating main currency (it always remains USD, but it is not present in the $currencies array -EUR, PLN ).
aroud Line 1197 of /wp-content/plugins/woocommerce-currency-switcher/index.php
if (isset($currencies[$this->current_currency]))
{
$currency_symbol = $currencies[$this->current_currency][‘symbol’];
} else
{
$currency_symbol = ‘WRONG DATA. CHECK YOUR WOOCS OPTIONS!’;
//$currency_symbol = $currencies[$this->default_currency][‘symbol’];
}$this->current_currency outputs USD
and $currencies outputs
Array
(
[PLN] => Array
(
[name] => pln
[rate] => 4.4341
[symbol] => z?
[position] => right
[is_etalon] => 1
[hide_cents] => 1
[decimals] => 2
[description] => Polski z?oty
[flag] => https://example.com/wp-content/plugins/woocommerce-currency-switcher/img/no_flag.png
)[EUR] => Array
(
[name] => EUR
[rate] => 1
[symbol] => €
[position] => left_space
[is_etalon] => 0
[hide_cents] => 1
[decimals] => 2
[description] => Europian Euro
[flag] => https://example.com/wp-content/plugins/woocommerce-currency-switcher/img/no_flag.png
))
- The topic ‘Plugin is not updating main currency WRONG DATA. CHECK YOUR WOOCS OPTIONS!’ is closed to new replies.