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;
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.
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
add a comment |
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.
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
add a comment |
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.
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
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.
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
magento2 order-status items status order-items
edited May 22 at 11:29
summu
asked May 22 at 10:54
summusummu
19110
19110
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can get the status of each individual item using the following:
foreach ($_order->getAllItems() as $item)
echo $item->getStatus();
add a comment |
Please change
$_order->getStatusLabel();
to
$_order->getStatus();
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
|
show 1 more comment
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can get the status of each individual item using the following:
foreach ($_order->getAllItems() as $item)
echo $item->getStatus();
add a comment |
You can get the status of each individual item using the following:
foreach ($_order->getAllItems() as $item)
echo $item->getStatus();
add a comment |
You can get the status of each individual item using the following:
foreach ($_order->getAllItems() as $item)
echo $item->getStatus();
You can get the status of each individual item using the following:
foreach ($_order->getAllItems() as $item)
echo $item->getStatus();
answered May 22 at 13:28
AJ47AJ47
265318
265318
add a comment |
add a comment |
Please change
$_order->getStatusLabel();
to
$_order->getStatus();
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
|
show 1 more comment
Please change
$_order->getStatusLabel();
to
$_order->getStatus();
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
|
show 1 more comment
Please change
$_order->getStatusLabel();
to
$_order->getStatus();
Please change
$_order->getStatusLabel();
to
$_order->getStatus();
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
|
show 1 more comment
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
|
show 1 more comment
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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