Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WC] cart gets emptied with multiling variable products #645

Open
wywarren opened this issue Feb 17, 2019 · 7 comments
Open

[WC] cart gets emptied with multiling variable products #645

wywarren opened this issue Feb 17, 2019 · 7 comments
Labels
module: WC Integration with Woo Commerce

Comments

@wywarren
Copy link

I created a variable product with multiling attributes and variations. Added a few to cart and bounced between cart and checkout (without switching languages) and at some point the items will disappear saying "AAA has been removed from your cart because it has since been modified.". It seems to have been plaguing users on WPML as well.

Please see:
https://wpml.org/forums/topic/problem-item-has-been-removed-from-your-cart-because-it-has-since-been-modified/

I will do a database/source code deep dive later next week but it seems to be a problem internally with woocommerce not playing well with multilingual content.

@herrvigg herrvigg added the plugin: others Concerns integration with other plugins label Feb 17, 2019
@herrvigg
Copy link
Collaborator

I haven't found time to look at this but if you experiment some stuff please try to do with the PR to integrate the new modules: #627. This will be quite a big change also to handle these specific bugs more easily. Also, once this becomes a new plugin these modules might become again new separate projects as git submodules but they should not be separate WP plugins. This is the plan but i'll come back to this later.

About empty cart i found this old issue but there was no mention of variable product. Maybe it was the same case, maybe not: #517

@herrvigg
Copy link
Collaborator

herrvigg commented Apr 3, 2019

@wywarren is it directly related to #612 ? It would be good if we could cleanup the tickets to better see what is remaining now.

@herrvigg
Copy link
Collaborator

@wywarren also here, could you try with PR #790 to see if this solves this issue?

@herrvigg herrvigg changed the title WooCommerce c tart gets emptied with multiling variable products [WC] cart gets emptied with multiling variable products Feb 29, 2020
@alelkin
Copy link

alelkin commented Apr 25, 2020

If you use #790 final file qwc-front.php it stops showing any variations

@herrvigg
Copy link
Collaborator

@alelkin the change of #790 has not been merged for the reasons i explained in that ticket. These corrections were done differently in 3.7.3. See #612.

This ticket here is a different topic i think. I don't know the current status. Let's forget about #790 because it's not relevant anymore. The discussion here should only concern the problem described earlier with the empty cart.

If it's a different topic please open a new ticket describing the problem precisely with all the info about the versions you are using.

@alelkin
Copy link

alelkin commented Apr 25, 2020

Got it.

So the problem is still here in version 3.8.0.
In addition to issue - when you add attributes in Admin pannel language switcher does not recognise those fields as translatable. So when you click any language noting happens.

@alelkin
Copy link

alelkin commented May 4, 2020

First tests of 3.8.1 version:
If you turn on function of "Redirecti to cart after adding order" it works. But when you go to checkout - it says again, that cart was epmtied.
If function "Redirecti to cart after adding order" is turned off it shows, that order was added to cart. But if you refresh any page, go to cart or other products - cart is emptied.

@herrvigg herrvigg added module: WC Integration with Woo Commerce and removed plugin: others Concerns integration with other plugins labels Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: WC Integration with Woo Commerce
Projects
None yet
Development

No branches or pull requests

3 participants