FOX - WooCommerce Para Birimi Değiştirici Profesyonel

WooCommerce Dinamik Fiyatlandırma (WooCommerce tarafından)

Eklenti URL'si: https://woocommerce.com/products/dynamic-pricing/

//\plugins\woocommerce-dynamic-pricing\classes\modules\class-wc-dynamic-pricing-advanced-totals.php dosyasına sonraki kodu 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']; $rule['from'] = $kural['from'] * ($oran); $kural['to'] = $kural['to'] * ($oran); } } } //wp tema function.php dosyanıza sonraki kodu ekleyin: add_filter('wc_dynamic_pricing_apply_cart_item_adjustment', 'woocs_fix_dinamic_price', 999, 4); function woocs_fix_dinamic_price($adjusted_price, $cart_item_key, $orijinal_fiyat, $module) { 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']; $ayarlanmış_fiyat = $ayarlanmış_fiyat / ($oran); } } } $adjusted_price döndür; }