Using v4.6.2
I need to modify the template of the invoice that gets emailed to the customer. Specifically, I need to change the colons at the end of the Order Date, Payment and Shipping lines.
I assume I need to use the hook - orders:invoice_order_status_info.
I plan on using a xxx.override.tpl file
But I am not sure whether it should go in my_changes / hooks / orders
or in my_changes / hooks / mail
or somewhere else
Thanks
I think so. I’m trying to make adjustments to the Ship To part of the layout in the email notification to the customer.
mail > template > order_notifcation.tpl which consists of:
common/letter_header.tpl
orders/invoice.tpl
common/letter_footer.tpl
I think I need to override the invoice.tpl in same folder. If that is correct, then where do I put the override tpl?
The issue I am trying to solve is that spaces and the colons are missing
For example, instead of First Last it is FirstLast
and instead of ORDER DATE: 02/26/2024 it is ORDER DATE02/28/2024
I tried a simple modification using
/design/themes/responsive/mail/templates/addons/overrides/orders/invoice.tpl
but it did not show up in the emails for my test orders.
My order emails are missing spaces in the notification and the customer name. And, they are missing the colon and a space after the ORDER DATE, PAYMENT and SHIPPING line items in the header.
@ecomlabs already asked, and you didn’t sound sure, but it’s important to know if you’re using the old or new mail template system. Settings->Appearance->Email templates mode:
Settings > Apperance > Email templates mode = New (nice and editable via admin panel)
_email_template.order_notification.d The subject line is:
{{ company_name }}: {{ __(“change_order_status_d_subj”, {“[order]”: order_info.order_id}) }}
and the template is:
{{ snippet(“header”, {“title”: __(“change_order_status_d_subj”, {“[order]”: order_info.order_id}) } ) }}
{{ __(“dear”) }} {% if order_info.firstname %}{{ order_info.firstname }} {% else %} {{ __(“customer”) }} {% endif %},
I don’t have Notifications as an option under Administration.
I have Design > Documents
which has the following documents. But, they don’t look like
Gift certificates: default
Invoice
Order summary
Packing slip
Suppliers: invoice
I also have Design > Email templates
with items like
Order Notification: Open
which looks exactly like the file _email_template.order_notification.d from my earlier post.