FOX - Professioneller WooCommerce-Währungsumschalter

WooCommerce-Verbundprodukte

Plugin-Link: https://woocommerce.com/products/composite-products/

  • im Ordner wp-inhalt\plugins\woocommerce-komposit-produkte\beinhaltet\klasse-wc-cp-display.php nächsten Code hinzufügen: $suffix=";
  • im Ordner wp-inhalt\plugins\woocommerce-komposit-produkte\assets\js\frontend\add-to-cart-composite.js nächsten Code hinzufügen:
    if (woocs_current_currency != undefiniert && woocs_current_currency['rate'] != undefined) { price_data.base_price = price_data.base_price * woocs_current_currency['rate']; price_data.base_regular_price = price_data.base_regular_price * woocs_current_currency['rate']; composite_totals.price = composite_totals.price * woocs_current_currency['rate']; composite_totals.regular_price = composite_totals.regular_price * woocs_current_currency['rate']; }

  • Fügen Sie in der Datei functions.php den nächsten Code hinzu:
    add_filter('woocs_fixed_raw_woocommerce_price', function($tmp_val, $product, $price) { if ($price == 0) { $price zurückgeben; } $tmp_val zurückgeben; }, 999, 3);