WOOCS - WooCommerce Para Birimi Değiştirici


BookingWP tarafından WordPress Randevu Rezervasyon Eklentisi

Eklenti URL'si: https://bookingwp.com/plugins/woocommerce-appointments/

  • dosyalamak wp-content\plugins\woocommerce-randements\includes\class-wc-appointment-cart-manager.php sonraki kodu ekle:
    if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); if ($WOOCS->is_multiple_allowed) { $rate = $currencies[$WOOCS->current_currency]['rate']; $cart_item_meta['randevu']['_cost'] = $cart_item_meta['randevu']['_cost'] / $oran; } } }

  • dosyalamak wp-content/plugins/woocommerce-randements/include/entegrasyonlar/woocommerce-product-addons/includes/class-wc-product-addons-cart.php sonraki kodu ekle:
    if (class_exists('WOOCS')) { global $WOOCS; $addon['fiyat'] = $WOOCS->woocs_exchange_value(floatval($addon['fiyat'])); }

  • senin şu anki çocuk wp teması dosya functions.php sonraki kodu ekle:
    add_filter('woocommerce_product_addons_option_price_raw', function ($option_price, $option) { if (class_exists('WOOCS')) { global $WOOCS; $option_price = $WOOCS->woocs_exchange_value(floatval($option_price)); price} dönüş $option_ }, 10, 2);