FOX - Professionale del commutatore di valuta WooCommerce

Fondi dell'account YITH WooCommerce

Collegamento plug-in: https://yithemes.com/themes/plugins/yith-woocommerce-account-funds/

In archivio  \wp-content\plugins\yith-woocommerce-account-funds-premium\include\class.yith-ywf-deposit-fund-checkout.php aggiungi il codice successivo:

if (class_exists('WOOCS')) { globale $WOOCS; if ($WOOCS->is_multiple_allowed) { $corrente = $WOOCS->valuta_corrente; if ($corrente != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $tasso = $valute[$corrente]['tasso']; $importo = $importo / $tasso; } } }

In archivio \wp-content\plugins\yith-woocommerce-account-funds-premium\include\class.yith-ywf-customer.php aggiungi il codice successivo (due volte come nell'immagine qui sotto):

if (class_exists('WOOCS')) { globale $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $new_funds = $new_funds / $currencies[$WOOCS->current_currency]['rate']; } }


In archivio  \wp-content\plugins\yith-woocommerce-account-funds-premium\includes\class.wc-gateway-yith-funds.php elimina codice successivo:


In archivio functions.php del tema wordpress corrente aggiungi il codice successivo:

is_multiple_allowed) { $fund_av = $WOOCS->woocs_exchange_value($fund_av); } } restituisce $fund_av; }); add_filter('yith_show_used_funds', function($fund_av) { if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $fund_av = $WOOCS->woocs_exchange_value($fund_av); } } return $fund_av; }); add_filter('yith_min_deposit', function($fund_av) { if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $fund_av = floor($WOOCS->woocs_exchange_value($fund_av)) ; } } restituisce $fund_av; }); add_filter('yith_max_deposit', function($fund_av) { if (class_exists('WOOCS') AND $fund_av) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $fund_av = ceil($WOOCS->woocs_exchange_value($ fund_av)); } } restituisce $fund_av; });