Questions tagged [creditmemo]
The creditmemo tag has no summary.
176 questions
0 votes
1 answer
75 views
Magento 2 : How to prevent order cancellation in based on a custom condition?
I have a requirement, where I need to verify a custom condition just before the order cancellation process. If the condition fails, I need to stop the cancellation and revert the order to its previous ...
0 votes
1 answer
593 views
magento 2 credit memo set "quantity to refund" column value as 0 by default
i want to set "Qty to refund" column value as 0 by default and then i will update qty for only those product which i want to refund. i tried to set value as 0 but after that the "Update ...
1 vote
0 answers
70 views
Row total mismatch on credit memo page (magento version 2.4.3)
See this image it's the order page. The highlighted product's calculations are correct. See this image it's the credit memo page. The highlighted product's calculations are incorrect. Can you kindly ...
1 vote
3 answers
322 views
Magento 2.4.2 credit memo view not working properly
I'm coming to you, because I tested the credit memo functionality on my client's site. I noticed that the view does not load all the CSS and JS (see screen) When I go into the order to create the ...
0 votes
1 answer
340 views
How can i get order data using credit memo plugin in Magento 2?
Here I used the credit memo plugin for updating the order data after refund success so how can I get order data in that function? etc/adminhtml/di.xml <?xml version="1.0"?> <...
3 votes
1 answer
1k views
How to add a custom email variable to magento 2 credit memo email?
I need to add a custom variable based on payment method to credit memo email. I captured the event email_creditmemo_set_template_vars_before in my custom module, Which was dispatched on Magento\Sales\...
0 votes
0 answers
664 views
Add custom creditmemo attribute to sales_creditmemo_grid table
I have added a custom attribute custom_status to the sales_creditmemo and the sales_creditmemo_grid tables via a InstallData script in a custom module, and added the custom field to the creditmemo ...
0 votes
1 answer
2k views
Create Credit memo using API in Magento 2
I am using the console command to delete an order item so I need also to create a credit memo based on the delete item price and refund the payment to the customer online using API. I used the ...