FOX - Conmutador de moneda WooCommerce profesional

YITH Fondos de cuenta de WooCommerce

Enlace del complemento: https://yithemes.com/themes/plugins/yith-woocommerce-account-funds/

En archivo  \ wp-content \ plugins \ yith-woocommerce-account-funds-premium \ includes \ class.yith-ywf-deposit-fund-checkout.php agregar el siguiente código:

if (class_exists ('WOOCS')) {global $ WOOCS; if ($ WOOCS-> is_multiple_allowed) {$ actual = $ WOOCS-> moneda_actual; if ($ currrent! = $ WOOCS-> default_currency) {$ currencies = $ WOOCS-> get_currencies (); $ tasa = $ monedas [$ actual] ['tasa']; $ monto = $ monto / $ tasa; }}}

En archivo \ wp-content \ plugins \ yith-woocommerce-account-funds-premium \ includes \ class.yith-ywf-customer.php agregar el siguiente código (dos veces como en la imagen de abajo):

if (class_exists ('WOOCS')) {global $ WOOCS; if ($ WOOCS-> moneda_actual! = $ WOOCS-> moneda_predeterminada) {$ monedas = $ WOOCS-> get_currencies (); $ nuevos_fondos = $ nuevos_fondos / $ monedas [$ WOOCS-> moneda_actual] ['tasa']; }}


En archivo  \ wp-content \ plugins \ yith-woocommerce-account-funds-premium \ includes \ class.wc-gateway-yith-funds.php eliminar siguiente código:


En archivo functions.php del tema actual de wordpress agregue el siguiente código:

is_multiple_allowed) {$ fondo_av = $ WOOCS-> woocs_exchange_value ($ fondo_av); }} return $ 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)) ;}} return $ 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));}} return $ fund_av;});