Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing issues with the WPC Frequently Bought Together plugin when switching languages on your website. Specifically, products added to the cart in one language disappear when switching to another language. Additionally, the + sign in the Frequently Bought Together widget does not adjust correctly between Right-to-Left (RTL) and Left-to-Right (LTR) orientations.
Solution:
1) For the issue of products disappearing from the cart upon language switch, this is a known behavior with complex products. We recommend enabling the option in WooCommerce Multilingual (WCML) to 'Prompt for a confirmation and reset the cart' when switching languages. This option is particularly useful for complex products. You can find more details here: Clearing Cart Contents When Language or Currency Change. Additionally, we invite the plugin author to join our GoGlobal program to work on compatibility improvements: Go Global Program.
2) For the alignment issues of the + sign in RTL and LTR orientations, this is likely controlled by the theme or the plugin's CSS and not by WPML. We advise testing the widget without WPML in both RTL and LTR modes and reporting the issue to the theme or plugin developer.

If these solutions do not resolve your issue or if they seem outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by Dražen 1 week, 4 days ago.

Assisted by: Dražen.

Author Posts
February 10, 2025 at 4:08 pm #16688685

tareqA-6

Background of the issue:
I am experiencing issues with the WPC Frequently Bought Together plugin when switching languages on my website hidden link. Although I know it's not compatible with WPML, I followed a ticket from hidden link to make it work when switching from English to Arabic. I am also referring to documentation at https://wpml.org/forums/topic/vase-doesnt-show-the-added-flowers-to-bought-together/.

Symptoms:
When I add the main product and the bought together products to the cart in one language, they disappear from the cart when I switch to the other language. Additionally, the + sign in the Frequently Bought Together widget does not adjust correctly between Right-to-Left and Left-to-Right orientations.

Questions:
How can I prevent the bought together products from disappearing from the cart when switching languages?
How can I fix the alignment of the + sign in the Frequently Bought Together widget for different text directions?

February 11, 2025 at 10:57 am #16690981

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

1) This is expected when you have complex products, thus way there is an option in WCML to "Prompt for a confirmation and reset the cart" when switching languages.

With a compatible plugin, we work on this with authors and try to make it compatible, but sometimes it is not possible due to the complex product / Wocommerce structure and this option is introduced and recommended to enable.

- https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/

The best I can advise is to use this option which is recommended for complex products and invite the plugin author to our GoGlobal to try and work on this together:

- https://wpml.org/documentation/support/go-global-program/

2) For RTL / LTR issues this is not controlled by WPML, it is probably theme or plugin CSS that does not support it correctly. I advise checking without WPML in RTL / LTR language and reporting back to the origin owner.

Hope this helped.

Regards,
Drazen