Questions tagged [creditmemo]
The creditmemo tag has no summary.
176 questions
0 votes
1 answer
76 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
0 answers
30 views
customer wallet recharged by payment gateway
Magento 2.4 module for a Customer Wallet Recharge via Payment Gateway involves building a custom module that allows customers to add funds to their digital wallet on your Magento store using a payment ...
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 ...
0 votes
2 answers
195 views
How to use returnOrder or returnInvoice method from creditmemo?
I create creditmemo, but when I want to return qty to stock,I don't know how to used; vendor/magento/module-sales/Model/RefundOrder.php vendor/magento/module-sales/Model/RefundInvoice.php
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
2 answers
528 views
Override item layout of credit memo in email template and add new column
I want to override the item layout in credit memo email template and want to add new column in that. I tried to override that but that item layout in email template is not showing. Overridden email ...
1 vote
3 answers
324 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 ...
1 vote
0 answers
294 views
Magento 2.4.5 print invoice or print credit memo not working from the admin side
When I try to print invoices or credit memos from the admin side I face the below error. Error Screenshot: https://i.imgur.com/U6ZmZhj.png I use the below code: File Path: Vendor/Extension/Model/...
0 votes
1 answer
342 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"?> <...
1 vote
1 answer
1k views
Online refund payment using Invoice Rest API in Magento 2
There are some orders on the website that is done by the Paypal online method. Now I want to a partial refund of an order item using the invoice API. E.g:: /rest/default/V1/invoice/xxxx/refund { &...
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
1 answer
225 views
Magento 2.4.2 Order Status stuck on processing
When an order comes in an invoice is created automatically and gets send out. I can also find that invoice when i click on the order. If I ship the order then, the shipment email goes out to the ...
0 votes
0 answers
665 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
363 views
where can I find refunds in cash and refunds in store credit in the database?
I'm looking to compare refunds that have been paid in cash vs by store credit in the database, but I cannot find any info myself.
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 ...