How to Fix “Product has been removed from your cart because it has since been modified”

In this article, I will show you how to fix an error “Product has been removed from the cart because it has since been modified,” which may happen for variable products when you add them to the cart and then switch to another sub-store of your WooCommerce multisite network.

This is what the error looks like:

Product has been removed from your cart because it has since been modified. You can add it back to your cart.

In order to fix this error, all you need to do is:

It will be sufficient to do that only for attributes used for variations.

For example, in my case, on “Store 1,” I used this slug for a product color attribute:

WooCommerce product attributes

But on my “Store 2,” I just missed a letter in it:

Using the same slugs for WooCommerce product attributes
The attribute slug is different here, but it must be the same.

I know that sometimes your product attribute terms must have different slugs because your stores could be in different languages. Unfortunately, that’s how WooCommerce works, and we can not have different slugs. Please, translate only attribute names in that case.