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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form