WOOCS - WooCommerce Currency Switcher

WooCommerce Ultimate Box Product

The plugin URL: https://progostech.com/

  •  in file \wp-content\plugins\woocommerce-currency-switcher\classes\fixed\fixed_price.php add  code (see screen #1 below):
    OR $_product->is_type('box_product')

     

  • on  file  \wp-content\plugins\ultimate-box-product\includes\class-ubp-frontend-cart.php  add  code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currencies = $WOOCS->get_currencies();
            $conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
            $ubp_box_product_price = $ubp_box_product_price / $conversion_rate;
        }
    }