Home›Support›English Support›[Resolved] Woocommerce Multilingual and Woocommerce Composite Products issue
[Resolved] Woocommerce Multilingual and Woocommerce Composite Products issue
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where adding 2x composite products to the cart on a translated page results in 4x components being added instead of the expected 2x. This problem does not occur on the original language page, suggesting it might be related to WPML.
Solution: We recommend the following steps to address the issue: 1. Disable cart synchronization by setting it to the "Reset" option in the WooCommerce Multilingual settings. This can be done by turning on the "Prompt for a confirmation and reset the cart" option for language and currency changes. 2. Resolve the 404 image issue on the website. If uploading images for additional languages is not preferred, add the following code to the top of the .htaccess file and upload a placeholder.jpg to the site's root directory:
I am trying to: Add 2x composite product to cart in the translated page
Link to a page where the issue can be seen: hidden link
steps:
1. add this kit to cart
2. go to cart and change qty to 2 pcs instead of 1 pcs. it will now update all components to 4 pcs and not 2 pcs as expected.
I expected to see: 2 kits in cart
Instead, I got: 4 kit contents in cart
Only happens on translated page. Not in original language (Danish). Makes me believe it's WPML issue.
Welcome to WPML support, I'd be happy to help you with this.
I can see the issue, it looks like a compatibility issue, If you disable all non-related WPML plugins, and switch to one of the default themes, the problem persist or not?
NOTE:
+ Make a backup (both files and database) for your site before updating/proceeding with anything (Always a good practice!).
Strangely, it will be hard for me to tell the settings without looking at your site settings.
To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
I created a fresh new install to check this issue and I couldn't reproduce the issue there so it must be something within in the site.
I tried to create a package but since the backup of the site seems to be huge, I couldn't create one. Being so can you provide us wp-content & database backups? You should be able to create this using your hosting panel services.
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.