WOOCS - WooCommerce-Währungsumschalter

YITH WooCommerce Dynamische Preise und Rabatte

Plug-in-URL: https://yithemes.com/themes/plugins/yith-woocommerce-dynamic-pricing-and-discounts/

Dies behebt keinen Fehler mit Mini-Korb und hängt nicht vom WOOCS-Code ab

//in der Datei \plugins\yith-woocommerce-dynamic-pricing-and-discounts-premium\includes\functions.yith-wc-dynamic-pricing.php nächsten Code hinzufügen if (class_exists('WOOCS')) { global $WOOCS ; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $Rabatt = $Rabatt * ($Preis); } } } if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $rule['discount_amount'] = $rule['discount_amount'] * ($rate); } } } //In der Datei \plugins\yith-woocommerce-dynamic-pricing-and-discounts-premium\includes\class-yith-wc-dynamic-pricing.php durch Code ersetzen (siehe Bildschirm 3 unten) if (! $discount['onsale'] && ( ($product->get_sale_price() !== '' AND $product->get_sale_price() > 0) && $product->get_sale_price() !== $product->get_regular_price( ) )) //und nächsten Code hinzufügen if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $price = $price / $currencies[$WOOCS->current_currency]['rate']; } }