Problems with Variable Products #519
Comments
I have the same problem, if I copy from primary languages, i show only simple products, without the possibility to copy variation. How can I solve this? |
Hello, Did you try to install plugin "jQuery Migrate Helper" ? |
Can you please use the code from the repository, download zip directly from download code and install, i think it might be solved, i will be testing this a lot next week, but every feedback is welcome. |
After downloading zip and installing from GitHub I have 2 problems:
|
I'm having the same problem with the GitHub version of the plugin |
It seems that the latest PR #518 has screwed up something related to variable products. |
Ok i read topic, now the problem is a misspelling in a meta attribute. Can we solve with a update query and fix the name in src/Hyyan/WPI/Plugin.php? |
Sorry, I only commited some fixes for typos long time ago. My knowledge of the inner workings of this plugin is near zero. |
Right now, I think that the only one knowing how this plugin works is @Jon007 |
I reverted #518 for now. And I will take a deeper look later |
Thanks! |
Maybe the plugin should use the official Polylang With this filter, one can specify the taxonomies one wants to sync or copy and Polylang takes care of the synchronization/copy of said taxonomies and their related terms when one creates a new translation. Just an idea. |
I looked at that but all these are getting dangerously obsolete, as woocommerce moves more towards its own api and its own tables you can't rely on treating products as a post and using generic post based apis. At best there'll be bugs with the woocommerce caching mechanism. |
Yes, I know that. I was thinking about it as a temporary solution while we wait for WC api changes. From:
To:
Apparently, the use of |
From https://jquery.com/upgrade-guide/3.0/:
|
Also, right now, when the user clicks WC duplicate product link, the product type is not copied over the replica. I "fixed" it by adding this to the
I don't know if there's anything wrong with this. |
I'd like to get rid of '_translation_porduct_type' altogether, it shouldn't really be necessary, it's only there to cope with user interface quirk, however the simplest for now is to keep it and do as you suggest |
I was going to ask you about this. Why is the translated product type stored in |
I think it's complicated because when translating polylang is there trying to give you the translated product details when you ask for the old product, at least, copying it across in the metadata is easier |
I think that in order to get rid of the |
Hi. Have you solved this problem? |
Hi, I committed some solutions to the Variable products issues including some explanation on #430 - it would be great if someone could test the latest code and confirm what issues remain - ideally on a new clean github issue, as there have been many partially or wholly duplicated tickets and getting hard to follow. |
Thanks for your work! I'll test the latest code when I get a chance and I'll let you know if any issues arise. |
I opened an issue after testing your latest code: |
@hyyan @mrleemon I checked in some important changes last week and labelled 5.1 In particular I have removed the workaround fix by @mrleemon on #408 by commenting out the meta.php call to: Previously we had this problem because the save sequence was not correct at least in 5.0 it was:
The code revisions now pick up the hooks just after WooCommerce save, and have been adjusted to work on quick edit (#549) and bulk edit too so the product type workarounds are no longer needed. Of course this isn't the end of it - the whole thing should be re-reviewed to only use the woo api and avoid the wp api - but should remove some of the odd behaviours. |
Great! That workaround fix was truly awful. Thanks! |
I’ve left the the misspelled _translation_porduct_type meta assignment in there for now but it isn’t used. If this version goes ok a subsequent release could remove this and other redundant code |
I tested this new version and I found an issue:
|
Ok yes I’ll take a look. |
@mrleemon checked in: on new translations needed to keep the wordpress hook as the woo hook is not fired yet |
Ok, thanks! |
I tested this new version and my issue with new translations is fixed. |
Hi,
We have problems editing variable products after last woocommerce update.
Product data indicates "Simple Product" but the product is variable.
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
WordPress Environment
The text was updated successfully, but these errors were encountered: