FOX - WooCommerce Currency Switcher Professional

Product Options and Price Calculation Formulas for WooCommerce – Uni CPO PREMIUM

The Plugin URL: https://wordpress.org/plugins/uni-woo-custom-product-options/

  • in file \wp-content\plugins\uni-woo-custom-product-options-premium\includes\uni-cpo-functions.php add code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $price = $WOOCS->woocs_exchange_value(floatval($price));
        }
    }

  • AND  comment/delete code:
  • in file includes\class-uni-cpo-ajax.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $price_display = $WOOCS->woocs_exchange_value(floatval($price_display));
        }
    }

     

  • In  file  wp-content\plugins\woocommerce-currency-switcher\js\front.js change next code:
    if (data.ids[jQuery(item).data('product-id')] != undefined && !jQuery(item).find('.js-cpo-price-starting')).length) {


Change selector of prices: .summary.entry-summary .price .woocs_price_code > .amount