• Resolved nilaydev

    (@nilaydev)


    Hello,

    I have used the Manual Scheduling Trigger URL and Processing URL into Cpanel cron for woo-commerce product import. it’s working fine.

    Now I want to send an email imported product summary report in my import process completed.
    Also if there is an error in import I want to send an error response in email.

    Could you please help me with how could i achieve this?, is there any hook to control the Trigger URL and Processing URL response?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @nilaydev,

    Now I want to send an email imported product summary report in my import process completed.

    That would be possible with custom code and our API. There’s an example here that you can modify as needed: https://www.wpallimport.com/documentation/code-snippets/#send-email-after-import-is-complete.

    Also if there is an error in import I want to send an error response in email. Could you please help me with how could i achieve this?, is there any hook to control the Trigger URL and Processing URL response?

    Unfortunately, there’s no reliable way to detect an error and we don’t currently have hooks to modify the trigger and processing URL responses. If that’s required, I’d suggest making a custom script that you fetch via cron jobs instead of our trigger/processing URLs. Your script can fetch those scripts and then you can have a custom response.

    Thread Starter nilaydev

    (@nilaydev)

    Hello support team,

    Thank you so much for your support,

    As per your suggestion, I have used the “pmxi_after_xml_import” hook to send the summary report via email and it’s working fine.

    Now I just want to confirm that, for any reason, if my Trigger URL and Processing URL fails then this hook will not be called then there is no hook to catch that right?

    Also, I have added a custom function in the plugin, and because of the deprecated function error in that function, my cron failed and the above hook not worked but when tried the same import with the plugin this error did not break my import. so for manual cron import, I need to send report errors email or log.

    Let me know if any other way to get an error or log this issue.

    Thanks.

    • This reply was modified 3 years, 2 months ago by nilaydev.
    Plugin Author WP All Import

    (@wpallimport)

    Hi @nilaydev,

    Now I just want to confirm that, for any reason, if my Trigger URL and Processing URL fails then this hook will not be called then there is no hook to catch that right?

    That’s correct.

    Let me know if any other way to get an error or log this issue.

    Outside of a custom script, there’s no way to reliably detect that an import has been terminated by the server.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Manual Scheduling’ is closed to new replies.