Content of the page

České služby pro WordPress


Content of the article

Plugin link: https://cs.wordpress.org/plugins/ceske-sluzby/

  • in file \plugins\ceske-sluzby-master\includes\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);
    }

 

Faster WordPress HostingWPBE - WordPress Posts Bulk Editor Professional