Hi @davidovic123,
For deleting the redundant “Refund” line from our print invoice. Please replace the below file in the given path.
Please take a backup of the existing plugin before replacing the file below.
Path:-woocommerce-delivery-notes/includes.
File:- https://www.dropbox.com/s/b3floqi25ygxz9u/wcdn-template-functions.php?dl=0
Please note:- Updating the plugin’s new version will wipe out these changes.
Regards,
Moksha.
Hi @mokshasharmila13, thank you very much for your reply,
I have removed the code as in the file you provided. But it deletes the second “Refund” line on the invoice.
Currently, the total lines on the invoice are as follows:
1/ Subtotal
2/ Shipping
3/ Refund
4/ Order subtotal
5/ Refund
6/ Total
I want to delete the first “Refund” line as shown in the screenshot I provided above, so that the invoice totals are ordered as follows:
1/ Subtotal
2/ Shipping
3/ Order subtotal
4/ Refund
5/ Total
Which code do I need to remove to delete the first line “Refund” from the invoice?
Regards,
Hi @davidovic123,
Sorry for the inconvenience, As you want to the remove ‘refund’ line from the invoice, and the format you want will be changed after replacing the below file.
Please replace the below file in the given path.
Please take a backup of the existing plugin before replacing the file below.
Path:-woocommerce-delivery-notes/includes.
File:- https://www.dropbox.com/s/b3floqi25ygxz9u/wcdn-template-functions.php?dl=0
Please note:- Updating the plugin’s new version will wipe out these changes.
Please let us know if it is working or not.
Regards,
Moksha.
Hi @mokshasharmila13,
It works. The first line “Refund” is removed from the invoice.
But the update adds an inappropriate code, as shown in this screenshot:
https://www.screencast.com/t/eWqTzevZcG
How to remove this code?
Best Regards,
Hi @davidovic123,
Good to know that it works. To remove an inappropriate code as you shared a screenshot. Please replace the below file in the given path.
Please take a backup of the existing plugin before replacing the file below.
Path:-woocommerce-delivery-notes/includes.
File:- https://www.dropbox.com/s/b3floqi25ygxz9u/wcdn-template-functions.php?dl=0
Please note:- Updating the plugin’s new version will wipe out these changes.
It would be great if you can give a review for the plugin & the support on https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/#new-post. That would be very helpful.
Regards,
Moksha.
Hi @mokshasharmila13,
The update works well. Thank you for your excellent support.
I already gave a review on this excellent plugin.
Keep up the good work.
Best regards,