Support » Plugin: Veeqo for WooCommerce » Email notification not sent when updating order.

  • Resolved aslamdoctor

    (@aslamdoctor)


    We have started using this plugin recently. It bridges with the Veeqo account nicely. When process the shipping from Veeqo panel, it updates the orders nicely on our Woocommerce site. But it doesn’t send any notification email to our customers.

    Normally when you change order status from Woocommerce admin panel, it sends emails to our customers but from Veeqo, when we update orders, it don’t send email.

    Can you please advise.

    Thank You

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author calvify

    (@calvify)

    Hey @aslamdoctor !

    Currently the WooCommerce integration doesn’t support triggering hooks such as shipment confirmation emails out of the box right now. Though it is something the team is working on currently as part of an improved integration which will trigger all necessary hooks.

    I know it’s due soon but I’ll see if I can get an approximate release timeline on this for you. Meanwhile, what we usually advise to do in this case is either of the following:

    – Customise and send shipment confirmations to customers directly from Veeqo (see more on this here https://help.veeqo.com/en/articles/3799317-how-to-edit-email-templates)

    – Add a custom cron task to your WordPress site to check for recently updated orders from Veeqo in shipped state every X minutes and trigger shipment confirmation hooks. Here’s a plugin that somebody else has written previously to send tracking information which could be used as a reference for sending shipment confirmations: https://github.com/garygoodger/woocommerce-veeqo-shipment-tracking

    Hope this helps 🙂

    Calvin

    Thread Starter aslamdoctor

    (@aslamdoctor)

    Thanks @calvify for your prompt reply. I will look into creating a cron task. The only issue is how do I check if order status is changed to shipped “but notification is not sent”? because there are chances that in some cases we will manually send email from WP Admin to customers. So building a cron job will send an email to them again.

    Plugin Author calvify

    (@calvify)

    @aslamdoctor Hey, apologies for the delay in getting back to you about the above.

    Do you trigger the manual email in case Veeqo does not send it? I’m thinking that if you set it up to be say every 10 minutes, you should have the shipment email sent by your cron task before you need to trigger an email yourself.

    However if it’s triggered for some other reason which may happen before that cron task runs to send it and there may be duplicates, I would propose to trigger a callback on manually sending the shipment confirmation which adds a new field like _shipment_confirmation_sent to the custom post meta for the order. Then your cron task can skip the order if that attribute is set.

    (I’m actually wondering if the status of the shipment confirmation is stored already in the order and that could be used to avoid adding the hook and extra attribute)

    Let me know if this helps.

    Thread Starter aslamdoctor

    (@aslamdoctor)

    Thank @calvify
    Actually I figured it out and implemented my own WP-Cron job which runs every 10 minutes.
    Basically it checks for all the orders with “completed” status, send email to customers and then flags them as “email_sent” 😀
    So in next cron, they get skipped.
    All working perfectly. The script is pretty small but took time in testing and implementation.

    Thanks again for your prompt replies.

    Plugin Author calvify

    (@calvify)

    @aslamdoctor Amazing, glad to hear that you got it working in the end 🙂

    Thread Starter aslamdoctor

    (@aslamdoctor)

    btw, I am also a Woocommerce plugin developer lolz 🙂

    • This reply was modified 12 months ago by aslamdoctor.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Email notification not sent when updating order.’ is closed to new replies.