How to add item status for an order in magento 2How to attach order status to order item collection?Update Order Status after Order is placedCancel non invoiced order item without cancelling orderorder status and state - magento 2How to update order status to shipped instead of preparingHow to get order status change dateOrder status randomly changes upon invoicing and shippingHow to get Order Status from order id in magento 2?Magento 2 order information: How to add links dynamically?Item level status in magento 2 via Netsuite

Apparent Ring of Craters on the Moon

The use of konnte

What is the difference between nullifying your vote and not going to vote at all?

Black-and-white film where monster/alien gets fried

Is CD audio quality good enough for the final delivery of music?

What F1 in name of seeds/varieties means?

What is the most important source of natural gas? coal, oil or other?

What are the benefits of cryosleep?

Employer demanding to see degree after poor code review

Future enhancements for the finite element method

The qvolume of an integer

How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?

How to capture more stars?

Do you play the upbeat when beginning to play a series of notes, and then after?

What is the best linguistic term for describing the kw > p / gw > b change, and its usual companion s > h

What does the term “mohel” mean in Hilchot Melicha (salting)?

Infinitely many hats

Is a post-climate apocolypse city in which many or most insects have disappeared realistic?

A Mathematical Discussion: Fill in the Blank

Is it possible to change original filename of an exe?

What are the problems in teaching guitar via Skype?

How can I prevent interns from being expendable?

Is floating in space similar to falling under gravity?

Restoring order in a deck of playing cards



How to add item status for an order in magento 2


How to attach order status to order item collection?Update Order Status after Order is placedCancel non invoiced order item without cancelling orderorder status and state - magento 2How to update order status to shipped instead of preparingHow to get order status change dateOrder status randomly changes upon invoicing and shippingHow to get Order Status from order id in magento 2?Magento 2 order information: How to add links dynamically?Item level status in magento 2 via Netsuite






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








0















I have multiple items in my order. How can I add item status and its tracking information for that order in My Account Orders?



I am using this to get orders



$_orders = $block->getOrders();


And for order status I do



$_order->getStatusLabel();


How to get the item status and its tracking information.



enter image description here



Like I have to show the



1) item status which I have hardcoded right now as Shipped and



2) item tracking information.



I have found Item.php which have this function



public function getStatus()

return $this->getStatusName($this->getStatusId());



Is this php class ?
How can I call this function in my phtml?










share|improve this question






























    0















    I have multiple items in my order. How can I add item status and its tracking information for that order in My Account Orders?



    I am using this to get orders



    $_orders = $block->getOrders();


    And for order status I do



    $_order->getStatusLabel();


    How to get the item status and its tracking information.



    enter image description here



    Like I have to show the



    1) item status which I have hardcoded right now as Shipped and



    2) item tracking information.



    I have found Item.php which have this function



    public function getStatus()

    return $this->getStatusName($this->getStatusId());



    Is this php class ?
    How can I call this function in my phtml?










    share|improve this question


























      0












      0








      0








      I have multiple items in my order. How can I add item status and its tracking information for that order in My Account Orders?



      I am using this to get orders



      $_orders = $block->getOrders();


      And for order status I do



      $_order->getStatusLabel();


      How to get the item status and its tracking information.



      enter image description here



      Like I have to show the



      1) item status which I have hardcoded right now as Shipped and



      2) item tracking information.



      I have found Item.php which have this function



      public function getStatus()

      return $this->getStatusName($this->getStatusId());



      Is this php class ?
      How can I call this function in my phtml?










      share|improve this question
















      I have multiple items in my order. How can I add item status and its tracking information for that order in My Account Orders?



      I am using this to get orders



      $_orders = $block->getOrders();


      And for order status I do



      $_order->getStatusLabel();


      How to get the item status and its tracking information.



      enter image description here



      Like I have to show the



      1) item status which I have hardcoded right now as Shipped and



      2) item tracking information.



      I have found Item.php which have this function



      public function getStatus()

      return $this->getStatusName($this->getStatusId());



      Is this php class ?
      How can I call this function in my phtml?







      magento2 order-status items status order-items






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 22 at 11:29







      summu

















      asked May 22 at 10:54









      summusummu

      19110




      19110




















          2 Answers
          2






          active

          oldest

          votes


















          1














          You can get the status of each individual item using the following:



          foreach ($_order->getAllItems() as $item) 
          echo $item->getStatus();






          share|improve this answer






























            0














            Please change



            $_order->getStatusLabel();


            to



            $_order->getStatus();





            share|improve this answer























            • is $_order->getStatus() for item status ?

              – summu
              May 22 at 11:20











            • @summu, Two items are from same order? try above code and check once, what you are getting?

              – jafar pinjar
              May 22 at 11:21












            • yes and i need status for both items as well, item level status

              – summu
              May 22 at 11:22












            • I am getting order status on both item level status.

              – summu
              May 22 at 11:30











            • @summu, is it fine or issue?

              – jafar pinjar
              May 22 at 11:36












            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%2f275658%2fhow-to-add-item-status-for-an-order-in-magento-2%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









            1














            You can get the status of each individual item using the following:



            foreach ($_order->getAllItems() as $item) 
            echo $item->getStatus();






            share|improve this answer



























              1














              You can get the status of each individual item using the following:



              foreach ($_order->getAllItems() as $item) 
              echo $item->getStatus();






              share|improve this answer

























                1












                1








                1







                You can get the status of each individual item using the following:



                foreach ($_order->getAllItems() as $item) 
                echo $item->getStatus();






                share|improve this answer













                You can get the status of each individual item using the following:



                foreach ($_order->getAllItems() as $item) 
                echo $item->getStatus();







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 22 at 13:28









                AJ47AJ47

                265318




                265318























                    0














                    Please change



                    $_order->getStatusLabel();


                    to



                    $_order->getStatus();





                    share|improve this answer























                    • is $_order->getStatus() for item status ?

                      – summu
                      May 22 at 11:20











                    • @summu, Two items are from same order? try above code and check once, what you are getting?

                      – jafar pinjar
                      May 22 at 11:21












                    • yes and i need status for both items as well, item level status

                      – summu
                      May 22 at 11:22












                    • I am getting order status on both item level status.

                      – summu
                      May 22 at 11:30











                    • @summu, is it fine or issue?

                      – jafar pinjar
                      May 22 at 11:36
















                    0














                    Please change



                    $_order->getStatusLabel();


                    to



                    $_order->getStatus();





                    share|improve this answer























                    • is $_order->getStatus() for item status ?

                      – summu
                      May 22 at 11:20











                    • @summu, Two items are from same order? try above code and check once, what you are getting?

                      – jafar pinjar
                      May 22 at 11:21












                    • yes and i need status for both items as well, item level status

                      – summu
                      May 22 at 11:22












                    • I am getting order status on both item level status.

                      – summu
                      May 22 at 11:30











                    • @summu, is it fine or issue?

                      – jafar pinjar
                      May 22 at 11:36














                    0












                    0








                    0







                    Please change



                    $_order->getStatusLabel();


                    to



                    $_order->getStatus();





                    share|improve this answer













                    Please change



                    $_order->getStatusLabel();


                    to



                    $_order->getStatus();






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 22 at 11:19









                    jafar pinjarjafar pinjar

                    921418




                    921418












                    • is $_order->getStatus() for item status ?

                      – summu
                      May 22 at 11:20











                    • @summu, Two items are from same order? try above code and check once, what you are getting?

                      – jafar pinjar
                      May 22 at 11:21












                    • yes and i need status for both items as well, item level status

                      – summu
                      May 22 at 11:22












                    • I am getting order status on both item level status.

                      – summu
                      May 22 at 11:30











                    • @summu, is it fine or issue?

                      – jafar pinjar
                      May 22 at 11:36


















                    • is $_order->getStatus() for item status ?

                      – summu
                      May 22 at 11:20











                    • @summu, Two items are from same order? try above code and check once, what you are getting?

                      – jafar pinjar
                      May 22 at 11:21












                    • yes and i need status for both items as well, item level status

                      – summu
                      May 22 at 11:22












                    • I am getting order status on both item level status.

                      – summu
                      May 22 at 11:30











                    • @summu, is it fine or issue?

                      – jafar pinjar
                      May 22 at 11:36

















                    is $_order->getStatus() for item status ?

                    – summu
                    May 22 at 11:20





                    is $_order->getStatus() for item status ?

                    – summu
                    May 22 at 11:20













                    @summu, Two items are from same order? try above code and check once, what you are getting?

                    – jafar pinjar
                    May 22 at 11:21






                    @summu, Two items are from same order? try above code and check once, what you are getting?

                    – jafar pinjar
                    May 22 at 11:21














                    yes and i need status for both items as well, item level status

                    – summu
                    May 22 at 11:22






                    yes and i need status for both items as well, item level status

                    – summu
                    May 22 at 11:22














                    I am getting order status on both item level status.

                    – summu
                    May 22 at 11:30





                    I am getting order status on both item level status.

                    – summu
                    May 22 at 11:30













                    @summu, is it fine or issue?

                    – jafar pinjar
                    May 22 at 11:36






                    @summu, is it fine or issue?

                    – jafar pinjar
                    May 22 at 11:36


















                    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%2f275658%2fhow-to-add-item-status-for-an-order-in-magento-2%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?