FOX - Currency Switcher Professional for WooCommerce

YITH Woocommerce Points and Rewards

Pluginhttps://wordpress.org/plugins/yith-woocommerce-points-and-rewards/

  • In file functions.php of your current wp theme add next code:
    add_filter('ywpar_get_active_currency_list', 'woof_get_active_currency_list');
    function woof_get_active_currency_list($currencies) {
        global $WOOCS;
        $currencies = array_keys($WOOCS->get_currencies());
        return $currencies;
    }
  • In file wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-percentual-conversion.php add next code:
    <?php
    
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currencies = $WOOCS->get_currencies();
        echo $currencies[$current_currency]['symbol'];
    } else {
        echo get_woocommerce_currency_symbol($current_currency);
    }
    ?>
  • In file \wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-conversion.php add next code:
    <?php
    
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currencies = $WOOCS->get_currencies();
        echo $currencies[$current_currency]['symbol'];
    } else {
        echo get_woocommerce_currency_symbol($current_currency);
    }
    ?>