Questions tagged [items]
The items tag has no summary.
78 questions
1 vote
1 answer
44 views
Itemcollection get latest updated_at item - Magento 2.4
We use the following code, to get the last item that was most recent updated. $itemsCollection = $cart->getQuote()->getItemsCollection(); $itemsCollection->getSelect()->order('updated_at ...
1 vote
1 answer
438 views
How argument and item node work in di.xml in Magento 2?
I just wanted to know in deeply how argument, type , virtual type and item work in di.xml
1 vote
1 answer
234 views
Magento2 sort Cart items with Name
I am working on of Mageto2.4.0 projects and currenly there is requirement to sort cart items with name e.g suppose that we have some items in cart "Argus All-Weather Tank" ,"Hero Hoodie&...
1 vote
0 answers
240 views
Show wishlist counter on header when it doesnt have items
I need to display cart and wishlist counters on my own header block. For the first one i've just modified the CSS to display block. But I can't find how the wish list counter works, so it will show 0 ...
0 votes
1 answer
272 views
How to change number of items in a row Magento 2
I've been through topics like this: Magento 2 change number of items per row All of them claims, that if I wanna change my items row to display 4 instead of 5, then I would have to change in a file ...
1 vote
1 answer
396 views
What is Difference Between Field, Argument and Item in Magento 2
I am not cleared about field,argument and item. Also I don't know why we use it. Xml code is: <field name="allow_shipping_method"> <argument name="data" xsi:type="array"> ...
1 vote
2 answers
3k views
How to add item status for an order in magento 2
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 ...
0 votes
2 answers
1k views
get invoice item using order_item_id in magento 2
I want invoice item data using order_item_id and I tried using use Magento\Sales\Api\InvoiceItemRepositoryInterface; private function getInvoiceItemById($orderItemId) { return $this->...