Questions tagged [order-items]
Denotes questions related to sales order items.
37 questions
0 votes
1 answer
196 views
Magento2 product_options field into the sales_order_itmes table
Does anyone know why, sometimes, into the table sales_order_itmes, I see rows that has product_options fields like this: { "info_buyRequest": { "uenc": "...
0 votes
0 answers
232 views
Split Custom Line Item in magento 2
I need a functionality to split custom line item in magento 2.3.4 . For example, suppose Product A has custom addon Child A, then by default magento will show like this Product-A-Child-A in sales ...
1 vote
2 answers
85 views
How to get all items of product purchased in Magento 2?
I would get information on all items of product purchased. I proceeded by this way but I can not have any information on all items of product purchased : <?php namespace MyTestSpace\...
2 votes
1 answer
867 views
I can't understand difference between quote/quoteitems and order/order Items Magento 2.3
I can't Understand the difference between Order And Quote or Order Items And Quote Items please explain what is it and how it works
0 votes
2 answers
335 views
Magento 2.2.10 is it possible to get all the orders status is pending?
I want to get all the orders where the status is pending. I want to do a second check where if the item status is cancelled. Is this possible to do?
1 vote
1 answer
6k views
How to get discount amount in Magento 2
I am trying to get discount amount, but no success How to get discount amount from $block->getShipment() <?php /** @var $_item \Magento\Sales\Model\Order\Item */ $_item = $block->getItem(...
2 votes
1 answer
634 views
Magento 2 - After invoice delete programatically can't create new invoice properly
I have used the code if ($order->getInvoiceCollection()->count()) { $_invoices = $order->getInvoiceCollection(); if ($_invoices) { foreach ($_invoices as $invoice) { ...
1 vote
0 answers
209 views
Magento 2 : Display Ordered Items listing in customer account
In Magento 2 customer account I have to add a new tab and when customer visits it then on that page have to display a list of all items from all orders of customers. It will be grids of ordered items. ...