Bagisto Forum

    Bagisto

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

    Can we push the order to API

    General Discussion
    2
    6
    516
    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.
    • B
      Bhima last edited by Bhima

      Hi, I would like to ask you guys in bagisto is there any override order function where I can call the order function and push the order to API or any order trigger function?

      1 Reply Last reply Reply Quote 0
      • N
        Naresh-webkul last edited by

        Hello @Bhima ,
        you can listen the event dispatch in OrderRepository under the path /packages/Webkul/Sales/Repositories/src/OrderRepository.php .

        1 Reply Last reply Reply Quote 0
        • B
          Bhima last edited by

          @Naresh-webkul
          thank for your response
          Can you explain to me a little bit about how to do that?

          1 Reply Last reply Reply Quote 0
          • N
            Naresh-webkul last edited by

            Hello @Bhima ,
            Can you please elaborate this so that i can explain you in a better way.
            Thank you.

            1 Reply Last reply Reply Quote 0
            • B
              Bhima last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • N
                Naresh-webkul last edited by

                Hello @Bhima ,
                For this you can listen the following event dispatch in the order repository :
                (checkout.order.save.after) from your event service provider.

                you should check the following link:
                https://devdocs.bagisto.com/events.html
                Thank you.

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