• Resolved Daniele

    (@dabesa)


    Dear support,

    I configured these options:

    • “Do not copy these fields” to exclude a custom field that we have on the product (called “restocked_on”)
    • “Do not copy these taxonomies” to exclude the “product_tag”

    But when I duplicate a product, both tags and restocked_on field are there.

    What am I missing?

    Thanks!

    Daniele

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @dabesa

    If you are creating the product using WooCommerce, and using the duplicate feature of WooCommerce, you will have to enable the plugin for the WooCommerce “product” post type.

    You or your developer can use the duplicate_post_enabled_post_types filter to customize this. Typically code snippets are added to your theme’s functions.php file. If you’re unfamiliar with using code snippets, we’d like to refer you to the WordPress documentation on how to use a filter. We have a developer portal with more information about filters and many examples of how to implement them.

    We recommend creating regular backups of your site and database for your site’s health and safety. A backup is crucial before modifying plugins and provides you with a safety net if something were to go wrong. Learn more about the benefits of regular backups.

    Thread Starter Daniele

    (@dabesa)

    Hello @611shabnam ,

    Under “Enable for these post types” I see “Product Variations” but not “Product”, is this correct?

    And why do I need to customize via filter, if “Do not copy these fields”? and “Do not copy these taxonomies” are plugin options?

    Shouldn’t this work out of the box?

    Thanks
    Daniele

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @dabesa

    WooCommerce provides it’s own “duplicate” feature so you don’t have to use Yoast Duplicate post’s feature to clone products. So, we prevented “Products” to be enabled (also by removing them from the Settings).

    When you use the filter, and then create a product with tag, try to use the clone feature from Yoast Duplicate Post underneath the products, you can see the tags are not copied in the cloned product.

    Kindly check this screenshot. Here you can see two products with the same title product 103. The bottom one is the cloned product and you can see it has no tag and the original item [the actual product 103 from which I cloned] is showing on the right side.

    Kindly feel free to let me know if I am not picking up the question correctly.

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    This thread was marked resolved due to a lack of activity by the original poster. The original poster can change the status to Not Resolved to re-open the issue or open a new topic.

    If you are not the original poster but have a similar issue, please open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Do not copy these fields’ is closed to new replies.