Get edit order id magento 2 adminMagento 2 passing more argument in ModelMagento 2 Checkout: Get Custom field value in payment methodGet product collection filter by from and to date in magento2.Magento2: How to update the product price programatically“There has been an error processing your request” in Admin area after installationMagento 2: Plugin class does not existMonolog Error After 2.2 UpgradeMagento 2 get custom attribute of a single product inside a pluginOrder Detail page get Order Item Collection When select any order in admin order grid in Magento 2Magento 2 dynamicRows as new tab for admin customer edit, how do you get data loaded?

Users forgotting to regenerate PDF before sending it

Why does Trump want a citizenship question on the census?

My professor has told me he will be the corresponding author. Will it hurt my future career?

What do you call a situation where you have choices but no good choice?

stuck in/at beta

How do I talk to my wife about unrealistic expectations?

Is there a formal/better word than "skyrocket" for the given context?

How do ballistic trajectories work in a ring world?

Can the word "desk" be used as a verb?

What are the consequences for a developed nation to not accept any refugees?

How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant

How can I use my cell phone's light as a reading light?

Four ships at the ocean with the same distance

With a data transfer of 50 GB estimated 5 hours, are USB-C claimed speeds inaccurate or to blame?

Is it okay to use open source code to do an interview task?

Is "wissen" the only verb in German to have an irregular present tense?

Computer name naming convention for security

What is the meaning of "prairie-dog" in this sentence?

Why did Old English lose both thorn and eth?

Is there a Redo (Undo Undo) function in Super Mario Maker 2?

Deck of Cards with Shuffle and Sort functionality

Can a landlord force all residents to use the landlord's in-house debit card accounts?

How to use Adostop Eco stop bath?

I'm feeling like my character doesn't fit the campaign



Get edit order id magento 2 admin


Magento 2 passing more argument in ModelMagento 2 Checkout: Get Custom field value in payment methodGet product collection filter by from and to date in magento2.Magento2: How to update the product price programatically“There has been an error processing your request” in Admin area after installationMagento 2: Plugin class does not existMonolog Error After 2.2 UpgradeMagento 2 get custom attribute of a single product inside a pluginOrder Detail page get Order Item Collection When select any order in admin order grid in Magento 2Magento 2 dynamicRows as new tab for admin customer edit, how do you get data loaded?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have to get order id in admin edit order?



I have tried to get order id from quote but the order creating new so that I don't fetch order id. Is there any way to get order id in admin edit order?



$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$quote = $objectManager->create('MagentoBackendModelSession');
$quoteData = $quote->getQuote()->getData();


But I can't fetch any order detail.










share|improve this question
























  • can you add more description and also what you tried so far. it will be very helpful.

    – Qaisar Satti
    Apr 27 '18 at 5:31











  • can you please check it @QaisarSatti

    – Moin Malek
    Apr 27 '18 at 5:43











  • can you share your edit order url?

    – Qaisar Satti
    Apr 27 '18 at 5:44











  • domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

    – Moin Malek
    Apr 27 '18 at 5:51











  • this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

    – Qaisar Satti
    Apr 27 '18 at 5:53

















1















I have to get order id in admin edit order?



I have tried to get order id from quote but the order creating new so that I don't fetch order id. Is there any way to get order id in admin edit order?



$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$quote = $objectManager->create('MagentoBackendModelSession');
$quoteData = $quote->getQuote()->getData();


But I can't fetch any order detail.










share|improve this question
























  • can you add more description and also what you tried so far. it will be very helpful.

    – Qaisar Satti
    Apr 27 '18 at 5:31











  • can you please check it @QaisarSatti

    – Moin Malek
    Apr 27 '18 at 5:43











  • can you share your edit order url?

    – Qaisar Satti
    Apr 27 '18 at 5:44











  • domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

    – Moin Malek
    Apr 27 '18 at 5:51











  • this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

    – Qaisar Satti
    Apr 27 '18 at 5:53













1












1








1








I have to get order id in admin edit order?



I have tried to get order id from quote but the order creating new so that I don't fetch order id. Is there any way to get order id in admin edit order?



$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$quote = $objectManager->create('MagentoBackendModelSession');
$quoteData = $quote->getQuote()->getData();


But I can't fetch any order detail.










share|improve this question
















I have to get order id in admin edit order?



I have tried to get order id from quote but the order creating new so that I don't fetch order id. Is there any way to get order id in admin edit order?



$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$quote = $objectManager->create('MagentoBackendModelSession');
$quoteData = $quote->getQuote()->getData();


But I can't fetch any order detail.







magento2 edit-order admin-order-create






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 27 '18 at 6:43









Qaisar Satti

27.3k12 gold badges62 silver badges110 bronze badges




27.3k12 gold badges62 silver badges110 bronze badges










asked Apr 27 '18 at 5:29









Moin MalekMoin Malek

4815 silver badges21 bronze badges




4815 silver badges21 bronze badges












  • can you add more description and also what you tried so far. it will be very helpful.

    – Qaisar Satti
    Apr 27 '18 at 5:31











  • can you please check it @QaisarSatti

    – Moin Malek
    Apr 27 '18 at 5:43











  • can you share your edit order url?

    – Qaisar Satti
    Apr 27 '18 at 5:44











  • domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

    – Moin Malek
    Apr 27 '18 at 5:51











  • this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

    – Qaisar Satti
    Apr 27 '18 at 5:53

















  • can you add more description and also what you tried so far. it will be very helpful.

    – Qaisar Satti
    Apr 27 '18 at 5:31











  • can you please check it @QaisarSatti

    – Moin Malek
    Apr 27 '18 at 5:43











  • can you share your edit order url?

    – Qaisar Satti
    Apr 27 '18 at 5:44











  • domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

    – Moin Malek
    Apr 27 '18 at 5:51











  • this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

    – Qaisar Satti
    Apr 27 '18 at 5:53
















can you add more description and also what you tried so far. it will be very helpful.

– Qaisar Satti
Apr 27 '18 at 5:31





can you add more description and also what you tried so far. it will be very helpful.

– Qaisar Satti
Apr 27 '18 at 5:31













can you please check it @QaisarSatti

– Moin Malek
Apr 27 '18 at 5:43





can you please check it @QaisarSatti

– Moin Malek
Apr 27 '18 at 5:43













can you share your edit order url?

– Qaisar Satti
Apr 27 '18 at 5:44





can you share your edit order url?

– Qaisar Satti
Apr 27 '18 at 5:44













domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

– Moin Malek
Apr 27 '18 at 5:51





domain.com/admin/sales/order_create/index/key/aa701fe990ca5037ae2250eb8d57843dbb9d4be3ad71898c4442f95b5bf1bf12/

– Moin Malek
Apr 27 '18 at 5:51













this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

– Qaisar Satti
Apr 27 '18 at 5:53





this is new order create page not order edit can you share what you want to do here with order. For getting the order id you need event for that

– Qaisar Satti
Apr 27 '18 at 5:53










2 Answers
2






active

oldest

votes


















2














Magento using the quote session for that following code is magento is using to get order increment id.



protected $_sessionQuote; 
public function __construct(
MagentoBackendModelSessionQuote $sessionQuote,

)


$this->_sessionQuote = $sessionQuote;



$this->_sessionQuote->getOrder()->getIncrementId();


So here is an update code for you make things clear.



$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$quote = $objectManager->create('MagentoBackendModelSessionQuote');
echo $quote->getOrder()->getIncrementId();





share|improve this answer

























  • Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

    – Moin Malek
    Apr 27 '18 at 6:38


















0














Accepted answer didn't solve my problem, In case If you're using plugin for class




MagentoFrameworkAppActionAbstractAction




than you can get order id in params



$controller->getRequest()->getParam('order_id');


In any plugin you can get it by



$this->request->getParams();


Hope it helps.






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%2f223921%2fget-edit-order-id-magento-2-admin%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Magento using the quote session for that following code is magento is using to get order increment id.



    protected $_sessionQuote; 
    public function __construct(
    MagentoBackendModelSessionQuote $sessionQuote,

    )


    $this->_sessionQuote = $sessionQuote;



    $this->_sessionQuote->getOrder()->getIncrementId();


    So here is an update code for you make things clear.



    $objectManager = MagentoFrameworkAppObjectManager::getInstance();
    $quote = $objectManager->create('MagentoBackendModelSessionQuote');
    echo $quote->getOrder()->getIncrementId();





    share|improve this answer

























    • Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

      – Moin Malek
      Apr 27 '18 at 6:38















    2














    Magento using the quote session for that following code is magento is using to get order increment id.



    protected $_sessionQuote; 
    public function __construct(
    MagentoBackendModelSessionQuote $sessionQuote,

    )


    $this->_sessionQuote = $sessionQuote;



    $this->_sessionQuote->getOrder()->getIncrementId();


    So here is an update code for you make things clear.



    $objectManager = MagentoFrameworkAppObjectManager::getInstance();
    $quote = $objectManager->create('MagentoBackendModelSessionQuote');
    echo $quote->getOrder()->getIncrementId();





    share|improve this answer

























    • Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

      – Moin Malek
      Apr 27 '18 at 6:38













    2












    2








    2







    Magento using the quote session for that following code is magento is using to get order increment id.



    protected $_sessionQuote; 
    public function __construct(
    MagentoBackendModelSessionQuote $sessionQuote,

    )


    $this->_sessionQuote = $sessionQuote;



    $this->_sessionQuote->getOrder()->getIncrementId();


    So here is an update code for you make things clear.



    $objectManager = MagentoFrameworkAppObjectManager::getInstance();
    $quote = $objectManager->create('MagentoBackendModelSessionQuote');
    echo $quote->getOrder()->getIncrementId();





    share|improve this answer















    Magento using the quote session for that following code is magento is using to get order increment id.



    protected $_sessionQuote; 
    public function __construct(
    MagentoBackendModelSessionQuote $sessionQuote,

    )


    $this->_sessionQuote = $sessionQuote;



    $this->_sessionQuote->getOrder()->getIncrementId();


    So here is an update code for you make things clear.



    $objectManager = MagentoFrameworkAppObjectManager::getInstance();
    $quote = $objectManager->create('MagentoBackendModelSessionQuote');
    echo $quote->getOrder()->getIncrementId();






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 27 '18 at 6:48









    Verdu

    1,0667 silver badges24 bronze badges




    1,0667 silver badges24 bronze badges










    answered Apr 27 '18 at 6:33









    Qaisar SattiQaisar Satti

    27.3k12 gold badges62 silver badges110 bronze badges




    27.3k12 gold badges62 silver badges110 bronze badges












    • Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

      – Moin Malek
      Apr 27 '18 at 6:38

















    • Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

      – Moin Malek
      Apr 27 '18 at 6:38
















    Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

    – Moin Malek
    Apr 27 '18 at 6:38





    Absolutely right answer Thanks for helping me out. you saved my time. +1 vote

    – Moin Malek
    Apr 27 '18 at 6:38













    0














    Accepted answer didn't solve my problem, In case If you're using plugin for class




    MagentoFrameworkAppActionAbstractAction




    than you can get order id in params



    $controller->getRequest()->getParam('order_id');


    In any plugin you can get it by



    $this->request->getParams();


    Hope it helps.






    share|improve this answer





























      0














      Accepted answer didn't solve my problem, In case If you're using plugin for class




      MagentoFrameworkAppActionAbstractAction




      than you can get order id in params



      $controller->getRequest()->getParam('order_id');


      In any plugin you can get it by



      $this->request->getParams();


      Hope it helps.






      share|improve this answer



























        0












        0








        0







        Accepted answer didn't solve my problem, In case If you're using plugin for class




        MagentoFrameworkAppActionAbstractAction




        than you can get order id in params



        $controller->getRequest()->getParam('order_id');


        In any plugin you can get it by



        $this->request->getParams();


        Hope it helps.






        share|improve this answer















        Accepted answer didn't solve my problem, In case If you're using plugin for class




        MagentoFrameworkAppActionAbstractAction




        than you can get order id in params



        $controller->getRequest()->getParam('order_id');


        In any plugin you can get it by



        $this->request->getParams();


        Hope it helps.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 29 at 7:35

























        answered Jun 29 at 6:19









        Mohit RaneMohit Rane

        1276 bronze badges




        1276 bronze badges



























            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%2f223921%2fget-edit-order-id-magento-2-admin%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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?