Distributor: WooCommerce duplicate product compatiblity

Created on 12 Mar 2021  ·  6Comments  ·  Source: 10up/distributor

Describe the bug
When utilizing the built-in duplicate product functionality of WooCommerce, If you are on a connected child site and duplicate the product, it will keep the distributor meta, so you will have 2 products that are now connected to the original product from the origin site.

Expected behavior
Duplicated product on child site should not have a connection to the origin distribution.

Environment information

  • WordPress version: 5.7
  • WooCommerce 5.1
  • Distributor 1.6.3-dev

Additional context
Not sure if this should be a compatibility implemented on the WooCommerce side or on the Distributor side.

bug plugins

Most helpful comment

All 6 comments

@aaronware could you explain your use case a little more where you'd want one product in sync but a duplicate of it not in sync on a remote site? Better understanding your scenario will help us better think through a potential resolution should that be feasible and warranted on the Distributor side... thanks!

I think what he means, is that the Woocommerce duplicate functionality also copies the distributor meta data, so now 2 posts have the same connection mapping.

I'm using https://yoast.com/wordpress/plugins/duplicate-post/ plugin on a site, and there you can add custom meta fields keys to ignore when duplicating a post. I think that @aaronware best can check if the built-in Woo functionality has a similar functionality to ignore certain field keys.

The question is, do you as, Distributor want to add this to Core so all future User can benefit from it, or simply document the fix for now :)

I'm writing a little bit of code now for the Yoast Plugin, will share here when finished.

@helen do you have a preference on the resolution route to take on this?

@jmslbam thanks for your careful thought and code on this, its greatly appreciated!

@jmslbam yes thank you so much for clarifying. I put in the issue and meant to go back and clarify a bit but was completely pulled away on something else.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeffpaul picture jeffpaul  ·  3Comments

superbuggy picture superbuggy  ·  7Comments

dleeward picture dleeward  ·  7Comments

jeffpaul picture jeffpaul  ·  5Comments

ahovhannissian picture ahovhannissian  ·  4Comments