Following the early message and while I do a staging site.
The main problem I'm facing is that Woo Commerce Bundle Products that seems to not be fully supported wby WPML as it says on your documentation. It gives several problems not only one.
Question:
If there is no currency involved, just a product bundled with size variation:
Is it possible to set the cart to "sync the content when changing the language" and make it work?
The problem with the bundles is that when I change the language, the products get unbundled and lose the size variation. Anyway to make it sync correctly?
Checking that the "Prompt and empty cart" is neither working for one of the languages, I'll prefer if possible to sync the content when changing language.
You asked: "If there is no currency involved, just a product bundled with size variation: Is it possible to set the cart to 'sync the content when changing the language' and make it work?"
Yes, and it is set to 'Synchronize cart content when switching languages' on your site. Please see the attached screenshot.
I suspect that the problem is that the Spanish language is hidden on your site. Please check if the problem persists when it is not hidden. Also, please ensure that all the products are translated and updated into Spanish.
Otherwise, if you need further help, please share access to your staging site or a package of your site. When you do that, please explain to us how to see the problem.
A private message is enabled for the following reply.
Problem 2 - I gave you access to the staging "shop" site - the site is live but the shop is hidden so I use it as staging for the multisite.
This demo as I have explained does not trigger the problem with the "prompt and clear the cart".
To duplicate the site and replicate the problem, go ahead and check that site: krux-sportclubs.com/cec - I've already grant you access with the same user/pwd that I shared with you yesterday.
This production site has 2 languages: catalan and spanish (I hide the spanish language because of the prompt cart and clear error).
You can duplicate and check. You will see that prompt and clear cart works when switching from spanish to catalan but not when you switch from catalan to spanish where the error triggers: the cart and language slug gets duplicated and that triggers a 403 error.
Thanks for further explaining the issue. I could replicate it on hidden link. Please see the attached screenshot. To do that, I needed to temporarily put the Language Switcher in the footer of the site (to be able to switch languages.) And also I needed to change the 'Switching languages when there are items in the cart' option from 'Synchronize cart content when switching languages' to 'Prompt for a confirmation and reset the cart'. After replicating the problem, I reverted these settings to their original state.
I want to ask you, please, to try the following, before I continue and make a copy of your site. I'm asking this because things might go wrong when making a copy of a single site out of a multisite installation. (I have the plugin to do this, but from experience, it does not always work, or when it works and I can produce a package, the problem is not always replicable on the local server.)
A. I suspect you are experiencing a variation of this known issue: https://wpml.org/errata/wpml-404-errors-for-child-pages-in-secondary-language/.
The description of the problem is not exactly the same because the /carrito/ page is not a child of another page in your case. But the variation might be because you are on a multisite installation. Can you temporarily change the /carrito/ slug to something else, for example/mi-carrito/, and check if the problem persists?
B. If the problem persists, we suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.
First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example), or at least switch to the parent Woodmart theme. If it persists, deactivate all plugins except WPML and its add-ons and WooCommerce without any extensions. Then, please check if the problem persists. If it does not continue, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***
I´m working with my hosting supplier to do an Staging site so I can do all the necessary tests that you recommend me. As soon as the Staging is working, I´ll contact you again with the results.
Finally I have problems duplicating the multisite so I did a "live" test.
I disabled all plugins, changed the theme, and everything you advised me but the "error" still persist.
As I said before, I'm almost sure the problem has been originated the moment I changed the default language of the subsite. This subsite was originally in spanish (default) and catalan as second language; I did change the default from spanish to catalan and I think that change is what is generating the "issue" when switching languages with products added on the cart.
Do you know of other similar related problems/issue when changing the default language of a site/subsite?
If you can duplicate the multisite and test.
PS: As I said this website is Live (performance) so any edits, changes or other tests you should do, please inform me in advance.
I have no admin access to your network, where it is possible to install plugins with WP multisite installations. I need it to install the Duplicator Pro plugin that should enable me to create a copy of hidden link. Please provide me access as a super admin so I can proceed.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
Regards,
Itamar.
The topic ‘[Closed] Prompt for a confirmation and reset the cart not working’ is closed to new replies.