Magento 2 - sales_order_place_after not returning Order IDUnable to get order by increment id in observerExecuting Custom script after placing the order successfully magento 2observer method sales_order_place_after not executingHow to obtain a JSON order rendered by the REST API in the sales_order_place_after event observerModifying product options on “sales_order_place_after” event : modifications unsaved?Magento add custom options to cartPaypal Express sales_order_place_afterSet custom price of product when adding to cart code not workingMagento sales_order_place_after event not workingHow to get order data from sales_order_shipment_save_after eventsales_order_place_after not triggering in magento 2Magento 2: I Want to add multiple product using checkbox

Make a Bowl of Alphabet Soup

Integral Notations in Quantum Mechanics

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

Unable to disable Microsoft Store in domain environment

"Oh no!" in Latin

How would a solely written language work mechanically

I'm just a whisper. Who am I?

Pre-Employment Background Check With Consent For Future Checks

Grepping string, but include all non-blank lines following each grep match

Why is the Sun approximated as a black body at ~ 5800 K?

Why do Radio Buttons not fill the entire outer circle?

If the only attacker is removed from combat, is a creature still counted as having attacked this turn?

Does Doodling or Improvising on the Piano Have Any Benefits?

Is there anyway, I can have two passwords for my wi-fi

Typing CO_2 easily

Ways of geometrical multiplication

What (the heck) is a Super Worm Equinox Moon?

Is it feasible to let a newcomer play the "Gandalf"-like figure I created for my campaign?

Is there a distance limit for minecart tracks?

When is "ei" a diphthong?

Proving an identity involving cross products and coplanar vectors

Echo with obfuscation

How to leave product feedback on macOS?

Can I run 125kHz RF circuit on a breadboard?



Magento 2 - sales_order_place_after not returning Order ID


Unable to get order by increment id in observerExecuting Custom script after placing the order successfully magento 2observer method sales_order_place_after not executingHow to obtain a JSON order rendered by the REST API in the sales_order_place_after event observerModifying product options on “sales_order_place_after” event : modifications unsaved?Magento add custom options to cartPaypal Express sales_order_place_afterSet custom price of product when adding to cart code not workingMagento sales_order_place_after event not workingHow to get order data from sales_order_shipment_save_after eventsales_order_place_after not triggering in magento 2Magento 2: I Want to add multiple product using checkbox













4















I have created an event for sales_order_place_after event.



This doesn't return Order Id. However, it returns Increment ID



public function execute(Observer $observer)

$order = $observer->getEvent()->getOrder();
$order->getIncrementId();
$order->getId();










share|improve this question
























  • Try to dump out the order data var_dump($order->getData())

    – Khoa TruongDinh
    Dec 29 '16 at 10:44











  • No, it is not working .

    – Jancy Abraham
    Dec 29 '16 at 10:50











  • Try to die var_dump($order->getData()); die();.

    – Khoa TruongDinh
    Dec 29 '16 at 11:00












  • Try with $order->getEntityId();

    – Rakesh Jesadiya
    Dec 29 '16 at 11:17






  • 2





    you can use sales_order_save_after event to get order id

    – Rakesh Jesadiya
    Dec 29 '16 at 11:37
















4















I have created an event for sales_order_place_after event.



This doesn't return Order Id. However, it returns Increment ID



public function execute(Observer $observer)

$order = $observer->getEvent()->getOrder();
$order->getIncrementId();
$order->getId();










share|improve this question
























  • Try to dump out the order data var_dump($order->getData())

    – Khoa TruongDinh
    Dec 29 '16 at 10:44











  • No, it is not working .

    – Jancy Abraham
    Dec 29 '16 at 10:50











  • Try to die var_dump($order->getData()); die();.

    – Khoa TruongDinh
    Dec 29 '16 at 11:00












  • Try with $order->getEntityId();

    – Rakesh Jesadiya
    Dec 29 '16 at 11:17






  • 2





    you can use sales_order_save_after event to get order id

    – Rakesh Jesadiya
    Dec 29 '16 at 11:37














4












4








4


1






I have created an event for sales_order_place_after event.



This doesn't return Order Id. However, it returns Increment ID



public function execute(Observer $observer)

$order = $observer->getEvent()->getOrder();
$order->getIncrementId();
$order->getId();










share|improve this question
















I have created an event for sales_order_place_after event.



This doesn't return Order Id. However, it returns Increment ID



public function execute(Observer $observer)

$order = $observer->getEvent()->getOrder();
$order->getIncrementId();
$order->getId();







magento2 event-observer sales-order place-order






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 29 '16 at 10:41







Jancy Abraham

















asked Dec 29 '16 at 10:31









Jancy AbrahamJancy Abraham

1,09111638




1,09111638












  • Try to dump out the order data var_dump($order->getData())

    – Khoa TruongDinh
    Dec 29 '16 at 10:44











  • No, it is not working .

    – Jancy Abraham
    Dec 29 '16 at 10:50











  • Try to die var_dump($order->getData()); die();.

    – Khoa TruongDinh
    Dec 29 '16 at 11:00












  • Try with $order->getEntityId();

    – Rakesh Jesadiya
    Dec 29 '16 at 11:17






  • 2





    you can use sales_order_save_after event to get order id

    – Rakesh Jesadiya
    Dec 29 '16 at 11:37


















  • Try to dump out the order data var_dump($order->getData())

    – Khoa TruongDinh
    Dec 29 '16 at 10:44











  • No, it is not working .

    – Jancy Abraham
    Dec 29 '16 at 10:50











  • Try to die var_dump($order->getData()); die();.

    – Khoa TruongDinh
    Dec 29 '16 at 11:00












  • Try with $order->getEntityId();

    – Rakesh Jesadiya
    Dec 29 '16 at 11:17






  • 2





    you can use sales_order_save_after event to get order id

    – Rakesh Jesadiya
    Dec 29 '16 at 11:37

















Try to dump out the order data var_dump($order->getData())

– Khoa TruongDinh
Dec 29 '16 at 10:44





Try to dump out the order data var_dump($order->getData())

– Khoa TruongDinh
Dec 29 '16 at 10:44













No, it is not working .

– Jancy Abraham
Dec 29 '16 at 10:50





No, it is not working .

– Jancy Abraham
Dec 29 '16 at 10:50













Try to die var_dump($order->getData()); die();.

– Khoa TruongDinh
Dec 29 '16 at 11:00






Try to die var_dump($order->getData()); die();.

– Khoa TruongDinh
Dec 29 '16 at 11:00














Try with $order->getEntityId();

– Rakesh Jesadiya
Dec 29 '16 at 11:17





Try with $order->getEntityId();

– Rakesh Jesadiya
Dec 29 '16 at 11:17




2




2





you can use sales_order_save_after event to get order id

– Rakesh Jesadiya
Dec 29 '16 at 11:37






you can use sales_order_save_after event to get order id

– Rakesh Jesadiya
Dec 29 '16 at 11:37











3 Answers
3






active

oldest

votes


















3














In Magento 2 observer I used this code, you get the order data like this,



use MagentoFrameworkEventObserverInterface;

class YOUROBSERVERCLASS implements ObserverInterface

protected $orderFactory;

public function __construct(MagentoQuoteModelQuoteFactory $quoteFactory,
MagentoSalesModelOrder $orderFactory)

$this->orderFactory = $orderFactory;


public function execute(MagentoFrameworkEventObserver $observer)

$orderIds = $observer->getEvent()->getOrderIds();
$lastorderId = $orderIds[0];

$order = $this->orderFactory->load($lastorderId);







share|improve this answer
































    5














    This is an old question but given I have just faced the same problem myself I thought I would give my take on the answer. sales_order_place_after is triggered before the order is saved to db so at the point your code is running the order entity ID doesn't exist. There are few options to work around this:



    You could use sales_order_save_after which is triggered after the order is actually persisted to db. This will allow you to have access to the order ID. This approach has risks however as it can be triggered again after the order is created. If you only want to run your code only once when the order is first placed, using this observer may have unexpected side effects.



    Alternatively rather than using an observer you could create a plugin around MagentoSalesApiOrderManagementInterface::place. This will allow you to do what I suspect you are trying to do with sales_order_place_after.



    As a rough example your modules etc/di.xml would look something like this:



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoSalesApiOrderManagementInterface">
    <plugin name="my-module-order-service" type="MyModulePluginOrderServicePlugin" sortOrder="5"/>
    </type>
    </config>


    And your plugin class like this:



    <?php

    namespace MyModulePlugin;

    class OrderServicePlugin

    public function aroundPlace(MagentoSalesModelServiceOrderService $subject, Closure $proceed, MagentoSalesApiDataOrderInterface $order)

    $return = $proceed($order);

    $orderId = $order->getEntityId();

    // your custom code

    return $return;








    share|improve this answer
































      0














      It is better to avoid around plugin unless necessary . Use after plugin or MagentoSalesApiOrderManagementInterface::place



      etc/di.xml



      <?xml version="1.0" ?>
      <config>
      <type name="MagentoSalesApiOrderManagementInterface">
      <plugin name="MyOrderPlaceAfterPlugin" type="MyModulePluginOrderPlaceAfterPlugin" sortOrder="99" />
      </type>
      </config>


      MyModulePluginOrderPlaceAfterPlugin.php



      //namespace MyModulePluginOrder;

      class PlaceAfterPlugin


      /**
      * @param MagentoSalesApiOrderManagementInterface $orderManagementInterface
      * @param MagentoSalesModelOrderInterceptor $order
      * @return $order
      */
      public function afterPlace(MagentoSalesApiOrderManagementInterface $orderManagementInterface , $order)

      $orderId = $order->getId();

      // do something with order object (Interceptor )

      return $order;







      share|improve this answer






















        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "479"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f152350%2fmagento-2-sales-order-place-after-not-returning-order-id%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        In Magento 2 observer I used this code, you get the order data like this,



        use MagentoFrameworkEventObserverInterface;

        class YOUROBSERVERCLASS implements ObserverInterface

        protected $orderFactory;

        public function __construct(MagentoQuoteModelQuoteFactory $quoteFactory,
        MagentoSalesModelOrder $orderFactory)

        $this->orderFactory = $orderFactory;


        public function execute(MagentoFrameworkEventObserver $observer)

        $orderIds = $observer->getEvent()->getOrderIds();
        $lastorderId = $orderIds[0];

        $order = $this->orderFactory->load($lastorderId);







        share|improve this answer





























          3














          In Magento 2 observer I used this code, you get the order data like this,



          use MagentoFrameworkEventObserverInterface;

          class YOUROBSERVERCLASS implements ObserverInterface

          protected $orderFactory;

          public function __construct(MagentoQuoteModelQuoteFactory $quoteFactory,
          MagentoSalesModelOrder $orderFactory)

          $this->orderFactory = $orderFactory;


          public function execute(MagentoFrameworkEventObserver $observer)

          $orderIds = $observer->getEvent()->getOrderIds();
          $lastorderId = $orderIds[0];

          $order = $this->orderFactory->load($lastorderId);







          share|improve this answer



























            3












            3








            3







            In Magento 2 observer I used this code, you get the order data like this,



            use MagentoFrameworkEventObserverInterface;

            class YOUROBSERVERCLASS implements ObserverInterface

            protected $orderFactory;

            public function __construct(MagentoQuoteModelQuoteFactory $quoteFactory,
            MagentoSalesModelOrder $orderFactory)

            $this->orderFactory = $orderFactory;


            public function execute(MagentoFrameworkEventObserver $observer)

            $orderIds = $observer->getEvent()->getOrderIds();
            $lastorderId = $orderIds[0];

            $order = $this->orderFactory->load($lastorderId);







            share|improve this answer















            In Magento 2 observer I used this code, you get the order data like this,



            use MagentoFrameworkEventObserverInterface;

            class YOUROBSERVERCLASS implements ObserverInterface

            protected $orderFactory;

            public function __construct(MagentoQuoteModelQuoteFactory $quoteFactory,
            MagentoSalesModelOrder $orderFactory)

            $this->orderFactory = $orderFactory;


            public function execute(MagentoFrameworkEventObserver $observer)

            $orderIds = $observer->getEvent()->getOrderIds();
            $lastorderId = $orderIds[0];

            $order = $this->orderFactory->load($lastorderId);








            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 1 '17 at 9:55









            amorcian

            33




            33










            answered Dec 29 '16 at 12:46









            Dhiren VasoyaDhiren Vasoya

            4,38551844




            4,38551844























                5














                This is an old question but given I have just faced the same problem myself I thought I would give my take on the answer. sales_order_place_after is triggered before the order is saved to db so at the point your code is running the order entity ID doesn't exist. There are few options to work around this:



                You could use sales_order_save_after which is triggered after the order is actually persisted to db. This will allow you to have access to the order ID. This approach has risks however as it can be triggered again after the order is created. If you only want to run your code only once when the order is first placed, using this observer may have unexpected side effects.



                Alternatively rather than using an observer you could create a plugin around MagentoSalesApiOrderManagementInterface::place. This will allow you to do what I suspect you are trying to do with sales_order_place_after.



                As a rough example your modules etc/di.xml would look something like this:



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                <type name="MagentoSalesApiOrderManagementInterface">
                <plugin name="my-module-order-service" type="MyModulePluginOrderServicePlugin" sortOrder="5"/>
                </type>
                </config>


                And your plugin class like this:



                <?php

                namespace MyModulePlugin;

                class OrderServicePlugin

                public function aroundPlace(MagentoSalesModelServiceOrderService $subject, Closure $proceed, MagentoSalesApiDataOrderInterface $order)

                $return = $proceed($order);

                $orderId = $order->getEntityId();

                // your custom code

                return $return;








                share|improve this answer





























                  5














                  This is an old question but given I have just faced the same problem myself I thought I would give my take on the answer. sales_order_place_after is triggered before the order is saved to db so at the point your code is running the order entity ID doesn't exist. There are few options to work around this:



                  You could use sales_order_save_after which is triggered after the order is actually persisted to db. This will allow you to have access to the order ID. This approach has risks however as it can be triggered again after the order is created. If you only want to run your code only once when the order is first placed, using this observer may have unexpected side effects.



                  Alternatively rather than using an observer you could create a plugin around MagentoSalesApiOrderManagementInterface::place. This will allow you to do what I suspect you are trying to do with sales_order_place_after.



                  As a rough example your modules etc/di.xml would look something like this:



                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                  <type name="MagentoSalesApiOrderManagementInterface">
                  <plugin name="my-module-order-service" type="MyModulePluginOrderServicePlugin" sortOrder="5"/>
                  </type>
                  </config>


                  And your plugin class like this:



                  <?php

                  namespace MyModulePlugin;

                  class OrderServicePlugin

                  public function aroundPlace(MagentoSalesModelServiceOrderService $subject, Closure $proceed, MagentoSalesApiDataOrderInterface $order)

                  $return = $proceed($order);

                  $orderId = $order->getEntityId();

                  // your custom code

                  return $return;








                  share|improve this answer



























                    5












                    5








                    5







                    This is an old question but given I have just faced the same problem myself I thought I would give my take on the answer. sales_order_place_after is triggered before the order is saved to db so at the point your code is running the order entity ID doesn't exist. There are few options to work around this:



                    You could use sales_order_save_after which is triggered after the order is actually persisted to db. This will allow you to have access to the order ID. This approach has risks however as it can be triggered again after the order is created. If you only want to run your code only once when the order is first placed, using this observer may have unexpected side effects.



                    Alternatively rather than using an observer you could create a plugin around MagentoSalesApiOrderManagementInterface::place. This will allow you to do what I suspect you are trying to do with sales_order_place_after.



                    As a rough example your modules etc/di.xml would look something like this:



                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                    <type name="MagentoSalesApiOrderManagementInterface">
                    <plugin name="my-module-order-service" type="MyModulePluginOrderServicePlugin" sortOrder="5"/>
                    </type>
                    </config>


                    And your plugin class like this:



                    <?php

                    namespace MyModulePlugin;

                    class OrderServicePlugin

                    public function aroundPlace(MagentoSalesModelServiceOrderService $subject, Closure $proceed, MagentoSalesApiDataOrderInterface $order)

                    $return = $proceed($order);

                    $orderId = $order->getEntityId();

                    // your custom code

                    return $return;








                    share|improve this answer















                    This is an old question but given I have just faced the same problem myself I thought I would give my take on the answer. sales_order_place_after is triggered before the order is saved to db so at the point your code is running the order entity ID doesn't exist. There are few options to work around this:



                    You could use sales_order_save_after which is triggered after the order is actually persisted to db. This will allow you to have access to the order ID. This approach has risks however as it can be triggered again after the order is created. If you only want to run your code only once when the order is first placed, using this observer may have unexpected side effects.



                    Alternatively rather than using an observer you could create a plugin around MagentoSalesApiOrderManagementInterface::place. This will allow you to do what I suspect you are trying to do with sales_order_place_after.



                    As a rough example your modules etc/di.xml would look something like this:



                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                    <type name="MagentoSalesApiOrderManagementInterface">
                    <plugin name="my-module-order-service" type="MyModulePluginOrderServicePlugin" sortOrder="5"/>
                    </type>
                    </config>


                    And your plugin class like this:



                    <?php

                    namespace MyModulePlugin;

                    class OrderServicePlugin

                    public function aroundPlace(MagentoSalesModelServiceOrderService $subject, Closure $proceed, MagentoSalesApiDataOrderInterface $order)

                    $return = $proceed($order);

                    $orderId = $order->getEntityId();

                    // your custom code

                    return $return;









                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited 39 secs ago

























                    answered May 15 '18 at 2:50









                    Andrew KettAndrew Kett

                    2,68911226




                    2,68911226





















                        0














                        It is better to avoid around plugin unless necessary . Use after plugin or MagentoSalesApiOrderManagementInterface::place



                        etc/di.xml



                        <?xml version="1.0" ?>
                        <config>
                        <type name="MagentoSalesApiOrderManagementInterface">
                        <plugin name="MyOrderPlaceAfterPlugin" type="MyModulePluginOrderPlaceAfterPlugin" sortOrder="99" />
                        </type>
                        </config>


                        MyModulePluginOrderPlaceAfterPlugin.php



                        //namespace MyModulePluginOrder;

                        class PlaceAfterPlugin


                        /**
                        * @param MagentoSalesApiOrderManagementInterface $orderManagementInterface
                        * @param MagentoSalesModelOrderInterceptor $order
                        * @return $order
                        */
                        public function afterPlace(MagentoSalesApiOrderManagementInterface $orderManagementInterface , $order)

                        $orderId = $order->getId();

                        // do something with order object (Interceptor )

                        return $order;







                        share|improve this answer



























                          0














                          It is better to avoid around plugin unless necessary . Use after plugin or MagentoSalesApiOrderManagementInterface::place



                          etc/di.xml



                          <?xml version="1.0" ?>
                          <config>
                          <type name="MagentoSalesApiOrderManagementInterface">
                          <plugin name="MyOrderPlaceAfterPlugin" type="MyModulePluginOrderPlaceAfterPlugin" sortOrder="99" />
                          </type>
                          </config>


                          MyModulePluginOrderPlaceAfterPlugin.php



                          //namespace MyModulePluginOrder;

                          class PlaceAfterPlugin


                          /**
                          * @param MagentoSalesApiOrderManagementInterface $orderManagementInterface
                          * @param MagentoSalesModelOrderInterceptor $order
                          * @return $order
                          */
                          public function afterPlace(MagentoSalesApiOrderManagementInterface $orderManagementInterface , $order)

                          $orderId = $order->getId();

                          // do something with order object (Interceptor )

                          return $order;







                          share|improve this answer

























                            0












                            0








                            0







                            It is better to avoid around plugin unless necessary . Use after plugin or MagentoSalesApiOrderManagementInterface::place



                            etc/di.xml



                            <?xml version="1.0" ?>
                            <config>
                            <type name="MagentoSalesApiOrderManagementInterface">
                            <plugin name="MyOrderPlaceAfterPlugin" type="MyModulePluginOrderPlaceAfterPlugin" sortOrder="99" />
                            </type>
                            </config>


                            MyModulePluginOrderPlaceAfterPlugin.php



                            //namespace MyModulePluginOrder;

                            class PlaceAfterPlugin


                            /**
                            * @param MagentoSalesApiOrderManagementInterface $orderManagementInterface
                            * @param MagentoSalesModelOrderInterceptor $order
                            * @return $order
                            */
                            public function afterPlace(MagentoSalesApiOrderManagementInterface $orderManagementInterface , $order)

                            $orderId = $order->getId();

                            // do something with order object (Interceptor )

                            return $order;







                            share|improve this answer













                            It is better to avoid around plugin unless necessary . Use after plugin or MagentoSalesApiOrderManagementInterface::place



                            etc/di.xml



                            <?xml version="1.0" ?>
                            <config>
                            <type name="MagentoSalesApiOrderManagementInterface">
                            <plugin name="MyOrderPlaceAfterPlugin" type="MyModulePluginOrderPlaceAfterPlugin" sortOrder="99" />
                            </type>
                            </config>


                            MyModulePluginOrderPlaceAfterPlugin.php



                            //namespace MyModulePluginOrder;

                            class PlaceAfterPlugin


                            /**
                            * @param MagentoSalesApiOrderManagementInterface $orderManagementInterface
                            * @param MagentoSalesModelOrderInterceptor $order
                            * @return $order
                            */
                            public function afterPlace(MagentoSalesApiOrderManagementInterface $orderManagementInterface , $order)

                            $orderId = $order->getId();

                            // do something with order object (Interceptor )

                            return $order;








                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 25 '18 at 17:05









                            Aunik RahmanAunik Rahman

                            12




                            12



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Magento Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f152350%2fmagento-2-sales-order-place-after-not-returning-order-id%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                                Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                                How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2