Weird short white background when clicking the switcher
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Brian on February 7, 2023, 18:44I am using the currency switcher and everything works as it should. Only, I am not able to get rid of some sort of white color that only appears when clicking and also disappears really quickly.
This is what happens:
URL: staging.tradecast.tv
It is password protected.
Username: Temporary-access
Password: Temporary123
I am using the currency switcher and everything works as it should. Only, I am not able to get rid of some sort of white color that only appears when clicking and also disappears really quickly.
This is what happens:

URL: staging.tradecast.tv
It is password protected.
Username: Temporary-access
Password: Temporary123
Quote from Pablo Borysenco on February 8, 2023, 10:27Hello
Please add css:
.selectron23-container {
overflow: hidden !important;
}
My test - https://share.pluginus.net/video/v20230208082741.mp4
Hello
Please add css:
.selectron23-container {
overflow: hidden !important;
}
My test - https://share.pluginus.net/video/v20230208082741.mp4
Quote from Brian on February 8, 2023, 10:32Great, that seems to do the trick!
Short other question. Sometimes when the page loads, the __SIGN__ is somewhat lower than the dorpdown icon. When I click on the switcher, the __SIGN__ gets into the right place.
This happens at random..
Great, that seems to do the trick!
Short other question. Sometimes when the page loads, the __SIGN__ is somewhat lower than the dorpdown icon. When I click on the switcher, the __SIGN__ gets into the right place.

This happens at random..
Quote from Pablo Borysenco on February 8, 2023, 12:54Unfortunately I can't repeat this error
I tried on different devices
Unfortunately I can't repeat this error
I tried on different devices
Quote from Brian on February 10, 2023, 11:32Thanks for checking. I just published this to the live website and I am not experiencing this issue there. Maybe just a weird staging-issue. Nevertheless, thanks for the help.
Short FYI: I also changed the plugin code somewhat. With this alternation, it shows 2 decimals as standard, but when entered 3 decimals, it shows 3 instead of. Do not know if you can use it, but here you go.
In the index.php, around line 805. I changed this code:
public function price($price, $currency = '') { if (isset($_REQUEST['wpcs_block_price_hook'])) { return $price; } if (empty($currency)) { $currency = $this->current_currency; } $currencies = $this->get_currencies(); $precision = 2; if (in_array($currency, $this->no_cents) OR $currencies[$currency]['hide_cents'] == 1) { $precision = 0; } if ($currency != $this->default_currency) { if ($currencies[$currency] != NULL) { $price = number_format(floatval($price) * floatval($currencies[$currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep); } else { $price = number_format(floatval($price) * floatval($currencies[$this->default_currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep); } } else { $price = number_format(floatval($price), $precision, $this->decimal_sep, $this->thousands_sep); } //http://stackoverflow.com/questions/11692770/rounding-to-nearest-50-cents //$price = round($price * 2, 0) / 2; //return round ( $price , 0 ,PHP_ROUND_HALF_EVEN ); return apply_filters('wpcs_price', $price); }
into this:
public function price($price, $currency = '') {
if (isset($_REQUEST['wpcs_block_price_hook'])) {
return $price;
}if (empty($currency)) {
$currency = $this->current_currency;
}$currencies = $this->get_currencies();
$precision = 2;
if (in_array($currency, $this->no_cents) OR $currencies[$currency]['hide_cents'] == 1) {
$precision = 0;
} else {
$precision = max(2, strlen(substr(strrchr($price, "."), 1)));
}if ($currency != $this->default_currency) {
if ($currencies[$currency] != NULL) {
$price = number_format(floatval($price) * floatval($currencies[$currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep);
} else {
$price = number_format(floatval($price) * floatval($currencies[$this->default_currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep);
}
} else {
$price = number_format(floatval($price), $precision, $this->decimal_sep, $this->thousands_sep);
}return apply_filters('wpcs_price', $price);
}
Thanks for checking. I just published this to the live website and I am not experiencing this issue there. Maybe just a weird staging-issue. Nevertheless, thanks for the help.
Short FYI: I also changed the plugin code somewhat. With this alternation, it shows 2 decimals as standard, but when entered 3 decimals, it shows 3 instead of. Do not know if you can use it, but here you go.
In the index.php, around line 805. I changed this code:
public function price($price, $currency = '') { if (isset($_REQUEST['wpcs_block_price_hook'])) { return $price; } if (empty($currency)) { $currency = $this->current_currency; } $currencies = $this->get_currencies(); $precision = 2; if (in_array($currency, $this->no_cents) OR $currencies[$currency]['hide_cents'] == 1) { $precision = 0; } if ($currency != $this->default_currency) { if ($currencies[$currency] != NULL) { $price = number_format(floatval($price) * floatval($currencies[$currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep); } else { $price = number_format(floatval($price) * floatval($currencies[$this->default_currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep); } } else { $price = number_format(floatval($price), $precision, $this->decimal_sep, $this->thousands_sep); } //http://stackoverflow.com/questions/11692770/rounding-to-nearest-50-cents //$price = round($price * 2, 0) / 2; //return round ( $price , 0 ,PHP_ROUND_HALF_EVEN ); return apply_filters('wpcs_price', $price); }
into this:
public function price($price, $currency = '') {
if (isset($_REQUEST['wpcs_block_price_hook'])) {
return $price;
}
if (empty($currency)) {
$currency = $this->current_currency;
}
$currencies = $this->get_currencies();
$precision = 2;
if (in_array($currency, $this->no_cents) OR $currencies[$currency]['hide_cents'] == 1) {
$precision = 0;
} else {
$precision = max(2, strlen(substr(strrchr($price,"."), 1)));
}
if ($currency != $this->default_currency) {
if ($currencies[$currency] != NULL) {
$price = number_format(floatval($price) * floatval($currencies[$currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep);
} else {
$price = number_format(floatval($price) * floatval($currencies[$this->default_currency]['rate']), $precision, $this->decimal_sep, $this->thousands_sep);
}
} else {
$price = number_format(floatval($price), $precision, $this->decimal_sep, $this->thousands_sep);
}
return apply_filters('wpcs_price', $price);
}
Quote from Pablo Borysenco on February 10, 2023, 12:26Hello
OK! Thank you for your cooperation
Hello
OK! Thank you for your cooperation