Home
›
COMPATIBILITY
›
České služby pro WordPress
České služby pro WordPress
Plugin link: https://cs.wordpress.org/plugins/ceske-sluzby/
in file \plugins\ceske-sluzby-master\i ncludes\class-ceske-sluzby-xml .php add code:
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed AND $WOOCS->current_currency != 'EUR') {
$price = $produkt->get_price('custom');
if ($WOOCS->default_currency != 'EUR') {
$currencies = $WOOCS->get_currencies();
$precision = $WOOCS->get_currency_price_num_decimals('EUR', $WOOCS->price_num_decimals);
$rate = $currencies['EUR']['rate'];
$price = number_format($price * ($rate), $precision, '.', '');
}
$cena_produkt = wc_get_price_including_tax($produkt, array('price' => $price, 'qty' => 1));
} else {
$cena_produkt = wc_get_price_including_tax($produkt);
}
} else {
$cena_produkt = wc_get_price_including_tax($produkt);
}
← Book Your Travel - Online Booking WordPress Theme
Conditional Discounts for WooCommerce →
🌸
Shortcodes, functions, actions and filters reference for FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
Got it
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.