After the latest upgrade to 4.6.3, the invoices now have a Payment Surcharge item in the subtotal area. What's this from and how can I remove it from the invoice if it doesn't apply to me?
It looks like a bug. An if statement is used which shouldn't add it.
If you don't use it, you can delete it in Design->Documents->Invoice
Thanks!
Actually it looks like they should have used the order raw variable instead of just the order variable.
Replace:
{% if o.payment_surcharge %}
With:
{% if o.raw.payment_surcharge %}
I'm on 4.3.9 CS version and do not have the Design->Documents->Invoice option on my backend, is there any other way to access that file?
Thanks!
With old document editor you should edit the files
design/themes/THEME/mail/templates/orders/invoice.tpl
design/backend/mail/templates/orders/invoice.tpl
Thanks, I found those files, but my version parameters are "=$order_info.payment_surcharge" in 3 different lines, not "if o.payment_surcharge", so this fix is not for me.
The only difference is syntax between Smarty and Twig. For smarty, you'd use {$order_info.payment_surcharge} and for Twig you'd use {{o.raw.product_surcharge}}.
Thanks, I found those files, but my version parameters are "=$order_info.payment_surcharge" in 3 different lines, not "if o.payment_surcharge", so this fix is not for me.
You can also print the whole array with order data with the following code
{$order_info|fn_print_r}
Then print invoice to see if necessary data present there
Try
{% if gift_certificates %} - {% endif %} {{ gift_certificates.text }}
(!) Not tested