FOX - WooCommerce Para Birimi Değiştirici Profesyonel

YITH WooCommerce Hesap Fonları

Eklenti bağlantısı: https://yithemes.com/themes/plugins/yith-woocommerce-account-funds/

Dosyada  \wp-content\plugins\yith-woocommerce-account-funds-premium\include\class.yith-ywf-deposit-fund-checkout.php sonraki kodu ekle:

if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $carrrent = $WOOCS->current_currency; if ($carrrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $oran = $para birimleri[$carrrent]['oran']; $tutar = $tutar / $oran; } } }

Dosyada \wp-content\plugins\yith-woocommerce-account-funds-premium\include\class.yith-ywf-customer.php sonraki kodu ekle (aşağıdaki resimdekinin iki katı):

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


Dosyada  \wp-content\plugins\yith-woocommerce-account-funds-premium\include\class.wc-gateway-yith-funds.php silme sonraki kod:


Dosyada functions.php mevcut wordpress temasının bir sonraki kodu ekleyin:

is_multiple_allowed) { $fund_av = $WOOCS->woocs_exchange_value($fund_av); } } $fund_av döndür; }); 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); } } dönüş $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)) ; } } dönüş $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)); } } geri $fund_av; });