FOX - WooCommerce Para Birimi Değiştirici Profesyonel

WooCommerce Mevduat

Eklenti bağlantısı: https://woocommerce.com/products/woocommerce-deposits/

Dosyada \ wp-content \ plugins \ woocommerce-depozit \ içerir \ class-wc-depozito-cart-manager.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']; $toplam = $toplam / $oran; } } }

Aynı dosyaya nex kodunu ekleyin:

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']; $toplam = $toplam / $oran; } } }


Geçerli WordPress temasının functions.php dosyasına aşağıdaki kodu ekleyin:

add_filter('woocommerce_deposits_fixed_deposit_amount', function ($deposit, $prod) { if (class_exists('WOOCS'')) { global $WOOCS; $currrent = $WOOCS->current_currency; if ($currrent != $WOOCS->default_currency AND) $WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $deposit = $deposit * $rate; } } $deposit iade; }, 2, 99);