• Resolved josephhh

    (@joseribeiro)


    Hello,

    In one of my stores when a new product is published a webhook is being called and the product is added to an external reserve management system.

    However, I realized that if the product is created using your plugin (duplicated), the webhook is not called, even after I publish the product. I’ve already realized that if I do a quick edit and change “no change” to “in stock” here https://i.imgur.com/4oz6ife.png and save, the webhook is then called (there’s no stock management on the store), adding the product to the external system.

    But this means I have to do this quick edit every time I create a new product using your plugin.

    Is there a way to avoid this and call the webhook as soon as the product is published, even if it was created by duplicating other product with your plugin?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi @joseribeiro,
    we’re sorry for the problem you are experiencing.
    Just to be sure: Yoast Duplicate Post is disabled for WooCommerce Products since version 4.1, because WooCommerce includes a duplication feature for them. The block can be bypassed using the duplicate_post_enabled_post_types filter, but it requires custom code.
    Are you using a version below 4.1, or have you enabled the plugin for the WooCommerce Products using the filter? If not, you are probably using the WooCommerce command to duplicate the Products.
    Can you confirm which way are you using to create copies of you Products?

    Thread Starter josephhh

    (@joseribeiro)

    Hi,

    Sorry for the late reply.

    I’m not sure I fully understood as I’m not a developer. We’re using plugin version 4.4 https://i.imgur.com/hvOJbzs.png and creating new product by clicking duplicate https://i.imgur.com/AygfIha.png

    I have the plugin enabled as follows: https://i.imgur.com/wNeUaB9.png

    Thank you

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @joseribeiro

    We’ve disabled the Yoast Duplicate Post functionality for WooCommerce Products since version 4.1, so the ‘duplicate’ function you are using is the default WooCommerce functionality and not from Duplicate Post.

    So you may have to check if it’s something within the duplication with WooCommerce Products that is causing this issue with your webhook.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Webhook not called when creating a product with the plugin’ is closed to new replies.