Skip Navigation

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 4 replies, has 2 voices.

Last updated by paulW-38 1 year, 9 months ago.

Assisted by: Ahmed Mohammed.

Author Posts
May 2, 2023 at 12:52 pm #13570671

paulW-38

I am trying to:
1st bug:
If you go to our integration website: hidden link
then add the magped RAOD product to the basket by clicking "ADD TO CART" then hover over the mini cart icon in the top right corner and remove the prodcut by clicking the (X) the link under the magped ROAD pedal does not change from "VIEW CART" to "ADD TO CART" again.

2nd bug:
When you add the magped ROAD pedal to the basket then switch to a different language for example IT and try then to remove the product from the basket by hovering the mini cart symbol in the top right corner and click the (X) the product will not be removed from the basket. --> removing a product in the min cart does not work if you change the language.

Link to a page where the issue can be seen: hidden link

I expected to see: the mini cart updates

Instead, I got:

I already had a ticket with the theme author (flatsome theme). This was their answer:

Hi Paul!

Thank you for your patience on this.

We have had our team look into this and noted that the issues are not Flatsome related.

This also happens on Storefront theme. You will need to contact WooCommerce support.
This issue may be caused by an inconsistency between session data due to browser caching or language changes. To resolve this problem, it's necessary to ensure that WPML session data is reloaded when the language changes. For this, you should get in touch with WPML support.

Thanks

--
Frank Olsen

May 3, 2023 at 12:44 pm #13578653

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

Regarding the first issue with the mini cart, I followed the same steps in the default language, and the Add to Cart text does not change after removing the product from the mini cart, as you can see in this quick screencast: hidden link.

So could you please let me know if there are other steps I need to follow to be able to see the issue?

Regarding the second issue, I have added the product to the cart while viewing the English version of the website. Then, I switched to Italian and removed the product from the cart, and it was removed successfully, as you can see here: hidden link.

It's possible that I may be overlooking some important steps in reproducing the issues, perhaps they only occur for logged-in users. Would you mind trying to replicate the issues on a different browser or in an incognito/private window?

Looking forward to hearing back from you.

May 3, 2023 at 1:50 pm #13579237

paulW-38

Hi Ahmed!

thanks for your quick response!
If I do the first thing in the English language, the Link changes from "ADD TO CART" to "VIEW CART" but does not change back to "ADD TO CART" when the item is removed from the mini cart. This is also shown in your video.
please see the screen recording here: hidden link

I don't know if it's a bug or a "feature" but in my understanding, the Link should change back to "ADD TO CART" if this product is removed from the mini card??

It also does not change back in the default language.
I cleared the browser cache of course.

2nd bug:
I can not reproduce it --> looks maybe this was a caching problem of my browser??

kind regards

:: Paul

May 3, 2023 at 6:33 pm #13581625

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Paul,

It also does not change back in the default language.

The key point is that if the same function operates as intended in other languages like the default language, then it is likely not WPML's error but rather the anticipated behavior.

As shown in my video, the URL does not change in both languages, the default and the secondary. So this is the expected behavior from the theme itself.

Hope that helps 🙂