FOX - Currency Switcher for WooCommerce

Woocommerce easy booking system (by @_Ashanna)

Plugin URL : https://wordpress.org/plugins/woocommerce-easy-booking-system/
  1. Trouvez dans le fichier wc-ebs-plugin.php la fonction wc_ebs_new_price_fragment
  2. Insérez-y le code suivant comme à l’écran : Système de réservation facile Woocommerce (par @_Ashanna)
    if(class_exists('WOOCS'))
    {
            global $WOOCS;
            $currencies = $WOOCS->get_currencies();
            $new_price = $new_price * $currencies[$WOOCS->current_currency]['rate'];
            $new_price=number_format ($new_price, 2, $WOOCS->decimal_sep, $WOOCS->thousands_sep);
            $currency=$currencies[$WOOCS->current_currency]['symbol'];
    }