All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
1answer
40 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) { ...
0
votes
0answers
16 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. ...
0
votes
1answer
23 views

Getting all products of orders of last 24 hours in magento 1 in a large database

I have a third party module in my magento 1 which is fetching products like this: $products = Mage::getModel('catalog/product')->getCollection(); So I want to replace it with selective products which ...
3
votes
1answer
783 views

Magento 2 change order item price

I have an order which has the grand total that I need to fix because one of my products prices is incorrect, to do that I need to change the order item price and recollect order total, is there a way ...
0
votes
0answers
110 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 ...
2
votes
1answer
350 views

How to display tax details at item lines in invoice?

I browsed the tables and discovered that tax rates, codes, etc are saved at order level. How can I display tax summary having tax code, rate, etc at each item line in invoices generated from backend?
1
vote
0answers
58 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
2answers
806 views

How to get the ordered size of a product In Magento 2

I tried to get the size of a product/products that was ordered. So let's say a product has 5 sizes: S, M, L, XL,XLL and when i made the order the product x was bought with the size M. When i load ...
0
votes
1answer
166 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
3answers
1k views

Magento 2 - Getting an order item tax percentage

I need to get an order item tax percentage <?php namespace Company\Module\Plugin; class myClass { protected $_orderRepository; public function __construct( \Magento\Sales\Api\...
4
votes
1answer
291 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:...