跳到内容 跳到侧边栏

Open

Topic Tags: WCML

Overview of the issue

After updating to WooCommerce PayPal Payments version 4.0.3, a WooCommerce error notice may appear on the frontend when visiting a variable product page: “Please choose product options by visiting Product“.

  • The issue affects ‘WooCommerce PayPal Payments 4.0.3’ and occurs even in a standalone WooCommerce installation without WPML or WCML
  • The message appears upon visiting a product page – no user interaction is required (e.g. adding to cart)
  • Despite the notice, the product can still be added to the cart with a selected variation – it does not block any further process, including MultiCurrency functionality in WCML

Please note that this issue occurs regardless of whether WPML or WooCommerce Multilingual are installed and doesn’t block any user action.

We have already reported this to the plugin authors for further investigation:
https://github.com/woocommerce/woocommerce-paypal-payments/issues/4321

Workaround

While working on a permanent fix, the authors have provided the following workaround:
Please, make sure of having a full site backup of your site before proceeding.

  • Add the following code to your theme’s functions.php file.
  • // WPML - compdev-1163
    add_filter( 'woocommerce_paypal_payments_simulate_cart_enabled', '__return_false' );
    

Note for advanced users:

This disables the cart simulation feature, which is mainly used for compatibility with certain third-party features and Pay Later calculations.

发表回复

保持话题相关并尊重他人。如果您需要与此帖子无关的问题帮助,请使用我们的支持论坛开始聊天或提交工单。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>