Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Mail Notification in order placement

    General Discussion
    2
    2
    376
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dsharma last edited by

      Re: Mail Notification in order placement

      Thankyou rahul for your reply,

      you have replied

      We have fired an event called checkout.order.save.after after successful order save and listening it to admin using below line -

      Event::listen('checkout.order.save.after', 'Webkul\Admin\Listeners\Order@sendNewOrderMail');
      and calling a function sendNewOrderMail and sending mail.

      Here i wanted to ask how are you calling above mentioned function because i have already included that event

      Regards
      Deepak Sharma

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @dsharma

        When you place an order, first request goes to onepagecontroller's saveOrder method, from where we are calling order repository's create method in sales package , when order successfully created then we fired this event there with order data like -

        Event::fire('checkout.order.save.after', $order);
        

        then listing this event using above mentioned way and calling a function to send message of order place.

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post