Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

This topic contains 8 replies, has 1 voice.

Last updated by Itamar 2 months, 4 weeks ago.

Assisted by: Itamar.

Author Posts
July 31, 2025 at 9:31 am

xavierC-5

Background of the issue:
I'm trying to prompt for a confirmation and reset the cart. The issue can be seen at this URL: hidden link.

Symptoms:
I expected to see an empty cart, but instead, I got an error 404 because the URL page name and language code got duplicated.

Questions:
Why is the cart not resetting as expected?
What causes the URL page name and language code to duplicate, resulting in a 404 error?

July 31, 2025 at 10:22 am #17284671

xavierC-5

Hi,

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.

Thanks.
Xavier

August 3, 2025 at 3:54 pm #17291118

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Xavier.

I'll continue to help you with this issue.

Was unable to find similar reports about a problem with the Product Bundles for WooCommerce plugin and WooCommerce Multilingual & Multicurrency.

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.

Regards,
Itamar.

2025-08-03_18-46-12.jpg
August 6, 2025 at 1:58 am #17298308

xavierC-5

Hi Itamar,

Thanks for the answer.

Problem 1 - Clear

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.

Regards,
Xavier

August 6, 2025 at 9:21 am #17298904

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Xavier.

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. ***

Regards,
Itamar.

2025-08-06_12-03-09.jpg
August 8, 2025 at 7:42 am #17304515

xavierC-5

Hi Itamar,

Thanks for the answer.

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.

Regards,
Xavier

August 10, 2025 at 9:48 am #17307412

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Xavier.

Sure, I'll wait for your reply when you have more news for me.

Regards,
Itamar.

August 12, 2025 at 6:38 am #17312129

xavierC-5

Hi Itamar,

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.

Looking for your feedback.
Regards,
Xavier

August 13, 2025 at 4:56 pm #17318623

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

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.