hyyan / woo-poly-integration

Looking for maintainers! - Wordpress WooCommerce Polylang Integration
https://wordpress.org/plugins-wp/woo-poly-integration/
MIT License
183 stars 66 forks source link

Quick edit Product synchronisation issues #549

Closed Jon007 closed 3 years ago

Jon007 commented 3 years ago

Can you reproduce this issue on default Wordpress theme (eg Storefront)?

yes

Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?

yes

What product versions and settings are you using when this issue occurs?

Steps to Reproduce

  1. ensure site is fully setup and working normally for product translation from product edit screen
  2. go to Products Admin listing eg: /wp-admin/edit.php?post_type=product
  3. hover over a simple product, choose Quick Edit, change attributes and update

What I Expected

  1. translations should be updated with updated properties

What Happened Instead

  1. no synchronisation
Jon007 commented 3 years ago

root cause is that the meta filter is only added within saveQuickEdit on the woocommerce_product_quick_edit_save hook This is the correct hook for the WooCommerce quick edit save completion, however when this executes the Polylang meta synchronisation has already happened (without being filtered to add on the extra WooCommerce properties) and does not reoccur.