• Resolved endgula

    (@endgula)


    By default, when all suborders are completed, the parent order changes its status to be completed as well.
    I personally modified this and made it so that when this happens, the parent order status changes to On Hold, but an email is still sent as if the order status is complete. How can I deactivate that email?

    • This topic was modified 8 months ago by endgula.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi endgula,

    It’s possible that you’ve made some changes to the code to enable this behavior. Nevertheless, please review the code or the modifications you’ve made to pinpoint where adjustments may have been made incorrectly to prevent the email from being sent. Alternatively, you can explain the adjustments you’ve made so we can examine them and respond accordingly. Hopefully, this clarifies things for you!

    All the best,

    Thread Starter endgula

    (@endgula)

    Hi (@yeasinarafathridoy),

    Hello, I made the modification in the following file:
    dokan/includes/order/hooks.php
    At line of code 277:

    Before: $parent_order->update_status( ‘wc-completed’, __( ‘Mark the parent order as completed when all child orders have been completed.’, ‘dokan-lite’ ) );

    After: $parent_order->update_status( ‘wc-delivery’, __( ‘Mark delivery of the parent order when all child orders are completed.’, ‘dokan-lite’ ) );

    I changed the default value from completed by delivery, since when the suborders are completed, the main order containing all the products is just sent by delivery to the end customer.

    I hope you can help me deactivate sending mail, because I have looked for the code but I couldn’t find it.

    Greetings!

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi endgula,

    It seems like you have modified the core function of the plugin, which is strongly not recommended. So it would be better to reach out to a developer who can write code on your behalf and also add that code to your child theme or a separate plugin.

    All the best,

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi?endgula,

    As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable sending mail’ is closed to new replies.