Closed basecamp-online closed 3 years ago
I have the exactly the same issue.
Hi, me too. Have tha same issue. Every plugins are up to date and products switching back to simple without variations.
For us this was the solution: https://github.com/hyyan/woo-poly-integration/issues/510#issuecomment-687156776
Had the same problem. I think it's caused by Hyyan WooCommerce Polylang Integration: 1.4.3.
After some digging, I found entries with meta_key
set to _translation_porduct_type
(instead of _translation_product_type
).
I corrected this typo with
UPDATE wp_postmeta SET meta_key='_translation_product_type' WHERE meta_key='_translation_porduct_type';
BTW the string _translation_porduct_type
can be found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Plugin.php
I didn't dare to replace it but I guess it could definitely solve the problem.
Any news on the issue? My client worked long hours to put all the variants and the inventory up to date before I've installed Hyyan WooCommerce Polylang... She's devastated...
@chere-gnst this has been resolved if you take the the update from 11 days ago, this commit:
@basecamp-online This solved your issue?
duplicates #512 : the switching to simple product appeared to be javascript issue on the setup of the product type selector box and does not appear to happen with latest wp and plugin versions - please advise if it does.
_translation_porduct_type is not an error, it is a setting specific to this plugin which has always been spelt that way, the change to this setting was reversed by Hyyan as breaks existing sites unless a general sql update is done. if anyone corrected that way it should definitely be reversed back using eg: UPDATE wp_postmeta SET meta_key='_translation_porduct_type' WHERE meta_key='_translation_product_type';
Can you reproduce this issue on default Wordpress theme (eg Storefront)?
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
What product versions and settings are you using when this issue occurs?
Steps to Reproduce
What I Expected
What Happened Instead
We have a lot of Woocommerce products with variants. When we are editing them they are switching back to simple products. By trial and error we figured ou that Polylang is causing this problem.
Does someboby knows how to fix this?
WordPress Environment