WooCommerce – PayU Latam Ağ Geçidi
- Eklenti bağlantısı: https://wordpress.org/plugins/woocommerce-payu-latam-gateway/
- açık woocommerce-gateway-payulatam.php
- fonksiyon bul __yapı()
- bunun yerine:
$this->currency = ($this->is_valid_currency()) ? get_woocommerce_currency() : 'USD';
sonraki kodu ekle:
if (class_exists('WOOCS')) { global $WOOCS; $curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency')); } else { $curr = get_woocommerce_currency(); } $this->currency = ($this->is_valid_currency()) ? $curr : 'USD';
fonksiyon bul is_valid_currency() ve tüm kodu bir sonraki kodla değiştirin:
function is_valid_currency() { if (class_exists('WOOCS')) { global $WOOCS; $curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency')); } else { $curr = get_woocommerce_currency(); } //+++ if (!in_array($curr, application_filters('woocommerce_payulatam_supported_currencies', array('ARS', 'BRL', 'COP', 'MXN', 'PEN', 'USD')))) dönüş YANLIŞ; true döndür; }