PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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

Hello

Please  add  css:

.selectron23-container {

overflow: hidden !important;

}

My  test - https://share.pluginus.net/video/v20230208082741.mp4

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..

Unfortunately I can't repeat this error

I tried on different devices

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);
}

Hello

OK!  Thank you for  your  cooperation