- Status
- Gelöst
- Gemeldet für
- WPML Multilingual & Multicurrency for WooCommerce 5.3.2
- Zugehöriges Plugin/Theme
- WooCommerce Subscriptions
- Themen-Tags
- Compatibility, WCML
Übersicht über das Problem
In WooCommerce Subscriptions mit einer mehrsprachigen Einrichtung zeigt der auf der Frontend-Produktseite angezeigte „Ab“-Preis für gruppierte Abonnements in einer Sekundärsprache und Währung einen falschen Wert an.
Problemumgehung
Bitte erstellen Sie ein vollständiges Backup Ihrer Website, bevor Sie fortfahren.
- Öffnen Sie die Datei …/wp-content/plugins/woocommerce-multilingual/compatibility/WcSubscriptions/MulticurrencyHooks.php.
- Suchen Sie nach Zeile 85.
- Ersetzen Sie:
if ( get_post_meta( $originalProductId, '_wcml_custom_prices_status', true ) ) { $subscriptionSignUpFee = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true ); } else { - Durch:
if ( get_post_meta( $originalProductId, '_wcml_custom_prices_status', true ) ) { $subscriptionSignUpFeeCurrency = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true ); if (! empty($subscriptionSignUpFeeCurrency) ) { $subscriptionSignUpFee = $subscriptionSignUpFeeCurrency; } } else {