Questions tagged [order-items]

Denotes questions related to sales order items.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
408 views

Cannot cancel order in Magento 1

I have an order with processing status and its invoice is canceled. When I use the order->canCancel() function, It returns me false. I checked the core and this is the part why I am getting false:...
2
votes
1answer
242 views

How to get category Id from order Item?

I want to get category Id from order Item. As we aware that we can get current_category on the product page. but how to get that category from orderItem object. We can get Product object via $...
2
votes
2answers
616 views

Create Admin grid from join table collection

I'm new to magento 2, I have a query to join multiple table, only 1 custom table I've made and the rest is from Magento 2, the query looks like this: SELECT marketplace_orders.entity_id as id, ...
1
vote
2answers
28 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\...
1
vote
0answers
69 views

Magento 2 help validate function to count bundle product child items of an order

I'm trying to write a function that takes an order object, and returns an array of sku => qty (key-value) showing how many of each sku was sold/shipped. The tricky part is, magento formats line items ...
1
vote
0answers
37 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. ...
1
vote
0answers
401 views

Order item extension attributes are always last database entry

I have added extension attributes to order items, and values are successfully saved to table, when I get an order from rest API, extension attributes always show the value of last order item row for ...
1
vote
0answers
68 views

Magento 2 - passing variable output to another variable in email template

I'm working on order confirmation email and I want to pass variable output: {{var order.getMyCustomItem().getSomething('key')}} To another variable. In my case it's an order model: {{var order....
1
vote
1answer
269 views

how to cancel certain order item rather than cancel whole order?

I need a function which is order cancel based on the item. Current scenario is that Magento does cancel whole order. What I want: A customer placed 2 ordered items. And after placed order, customer ...
0
votes
0answers
9 views

How to override module-sales name.phtml at all places in admin Magento 2

I have followed How to override vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml Magento 2 but, it's not change name in new shipment and view shipment section in admin.
0
votes
0answers
13 views

When order Items has zero order quantity the order items are not showing - magento 2.3

When Order items has zero order quantity then order items are not showing in order admin panel how can i resolve it. How to get solution for this scenerio in magento 2.3 Note : I need to give zero(...
0
votes
0answers
18 views

How to export the order with order line item with products in magento 2.3

I need to create a Order CSV with order Line items in default the order Export only gives the order details. So how can i do it problematically or any other way. Thanks in Advance :)
0
votes
0answers
26 views

Searching order using sku of a product

How can i retrieve all the orders where the purchased item have a specific sku? Thanks in advance
0
votes
2answers
167 views

Magento 2 - Override Reorder controller and skip some items from reorder

I have to skip some items when the customer does Reorder. For this, I have overridden the controller Using Plugin. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
998 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(...
0
votes
0answers
97 views

How to get bundle options qty ? Magento 2

How to get bundle product options qty from $order->getAllVisibleItems() ?
0
votes
0answers
135 views

Random missing product name in random orders

On rare and random occasions (once or twice a month) our client receives an order with one missing product name in the items list (see attached screenshot) - however the product name exists and is ...
0
votes
0answers
74 views

Magento 2 : Get Items Ordered in Email Template

I'm looking to achieve a product grid of items ordered in an email template upon successful product. This is what I'm trying to achieve, in this exact order for each product. Is this doable? I can't ...