• Resolved saens

    (@saens)


    Hi,
    I read the above in patch notes. This means copying a product is no longer possible?
    If so, why is that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @saens,
    WooCommerce already has an integrated duplication feature which handles a lot of Product features that Duplicate Post does not support (e.g. variable products).
    Almost all the WooCommerce+Duplicate Post users actually don’t enable Duplicate Post for Products (you had to do it in the settings) but use the WooCommerce feature which is there out-of-the-box and can’t be disabled.
    Many people don’t know about that and report to us any problem WooCommerce’s duplication feature might have, while Duplicate Post is actually not involved because it’s not enabled for Products.
    Actually if you enabled Duplicate Post for WC Products you’d see the links to create copies twice, which is very misleading because it wasn’t clear which one you were going to use (whethere WooCommerce or Duplicate Post).

    If for any reason somebody wants to enable Duplicate Post and use that for products, they can use the new filter duplicate_post_enabled_post_types by adding to their theme’s functions.php a code snippet like the following one:

    function mytheme_add_product( $post_list ) {
    	$post_list[] = 'product';
    	return $post_list;
    }
    add_filter('duplicate_post_enabled_post_types', 'mytheme_add_product');

    I hope this explains the reasoning behind our choice,
    thank you for your post that made us possible to explain that!

    I understand from a UX perspective. However, the big advantage with this plugin before the update was being able to duplicate a product without having the unnecessary extra step of clicking “Edit Product” first that costs time, which easily accumulates over time.

    That said, thanks for the code snippet that restores the functionality. ??

    Hi @ryankonky,
    as far as I know the “Duplicate” link is added by WooCommerce to the quick actions for each product in the Product list, isn’t it?

    I’m glad that the snippet is useful, anyway! We’ll make sure to add it to the developer’s guide.

    Thanks!

    @lopo Thanks so much for this info, I’ve used Woocommerce since the beginning (literally before it was Woocommerce) and had no idea!

    I’d like to know this as well. This feature used to be available in the WooCommerce Quick Actions dropdown and now it’s no longer there. I have to duplicate multiple products at once and now that it’s missing in the quick actions, this slows down my work flow significantly as @ryankonky mentioned.

    Can this be updated in a future patch please?

    Thanks for the snippet for now!

    • This reply was modified 3 years, 10 months ago by kaotik.

    Hi @kaotik,
    you can re-enable the plugin for WooCommerce products by using the code that you find in this message right in this thread.

    Hi,

    The code doesn’t work.

    I get this error:

    Copy features for this post type are not enabled in options page: product.

    Product is not an option in options page. I see Orders and Coupons, but no Product.

    Can it be fixed?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Disables the plugin for WooCommerce products “’ is closed to new replies.