[WPML] Can’t add products when switching language
-
Hi there!
Having a hard time trying to figure this out.
When adding composite products from the french site, it works. When switching to english and trying to add the same product, it will fail with this error:
[15-Jun-2021 02:06:59 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_price() on null in /home2/wp-content/plugins/woocommerce/includes/wc-product-functions.php:1083 Stack trace: #0 /home2//wp-content/plugins/wpc-composite-products/wpc-composite-products.php(1565): wc_get_price_to_display(NULL, Array) #1 /home2/wp-includes/class-wp-hook.php(292): WPCleverWooco->wooco_get_cart_contents(Array) #2 /home2/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array) #3 /home2/wp-content/plugins/woocommerce/includes/class-wc-cart.php(140): apply_filters('woocommerce_get...', Array) #4 /home2/wp-content/plugins/woocommerce/includes/class-wc-cart.php(604): WC_Cart->get_cart_contents() #5 /home2/wp-content/plugins/woocommerce/includes/class-wc-cart.php(623): WC_Cart->get_cart() #6 /home2/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(213): WC_Car in /home2/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 1083From what I can see, the price of the product is not being translated? I’m only using the free plugin but if I need to upgrade, i’ll gladly do so.
Thanks in advance!
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[WPML] Can’t add products when switching language’ is closed to new replies.