Background of the issue:
Synchronize cart content when switching languages to work with composite products. When there are products added to cart in one language and then switched to another language there are two problems that occur ONLY with composite products
- If amount is switched up -> the sub products 2x this amount (should be same)
- Cannot delete a product from cart -> gives error that one of the sub products is not available (all translations are updated, cache cleared and everything else works.)
Symptoms:
After switching languages:
Unable to edit composite products in cart
Unable to remove composite products in cart
Questions:
How can this be fixed (keeping the cart sync between languages on? WPML says it has full compatability with WooCommerce composite products.
Hi There,
Thanks for reaching out to WPML Support.
Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.
For WooCommerce Composite, Subscription, Booking, and similar product types, it’s recommended to keep Cart synchronization disabled to avoid potential issues. We also display a notice in the Backend advising you to enable the option to reset the cart when switching languages.
Please navigate to WooCommerce > WooCommerce Multilingual Settings, and under the Cart section, choose the "Prompt for a confirmation and reset the cart" option for "Switching languages when there are items in the cart." This will reset the cart, requiring users to re-add products in the secondary language. In this way, the issue you encountered on the Cart page will not happen.
I hope you can understand. Please feel free to let us know if you have any other question or need assistance. We will be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] Synchronize cart content NOT working with WooCommerce Composite Products’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.