News:

Looking for documentation? Take a look on our wiki

Main Menu

customize Text email template used to send order completion emails

Started by annpaul, January 25, 2023, 06:13:32 AM

Previous topic - Next topic

annpaul

Two questions:

1. I noticed that the HTML email correctly includes the order number wherever it should be present. But when I changed the Order Mail Format (in Configuration/Orders) to Text, it is missing the order number. The first line of the email looks like this:

Quote
Your order number:

Order confirmedYou bought and confirmed an order in ---- Store shop online.You can check the status of your order by going to your account

your order password = p_vb3NbdLH


Your order status is: Confirmed


view your order online : https://-----.com/index.php?option=com_virtuemart&view=orders&layout=details&order_number=6HU8013&order_pass=p_vb3NbdLH

Your comment:  testing notes

As you can see, the order link at the bottom does have the order number but it is missing at the top.

Besides this, there are several formatting issues with this emails (missing capitalization, spaces, punctuation etc.). So I am guessing there must be a template somewhere that is generating this email and I need to fix that template, right? Where can I find it?


2. Is it possible to send HTML email to the customer and Text email to the vendor upon order completion?

thank you!




annpaul

Found it.
I searched in vm files for "your order number:" using Agent ransack and found out the hard way how emails are being created. It is not pretty!

This was helpful too: https://forum.virtuemart.net/index.php?topic=102633.15

annpaul

Can someone please provide some help on this though:

2. Is it possible to send HTML email to the customer and Text email to the vendor upon order completion?

Jumbo!

1. You need to override and customise the layout files starting with "mail_" in the "components/com_virtuemart/views/invoice/tmpl/" folder.

2. No, you can not simultaneously have HTML and Text formats for different emails.

Alternatively, you can use VP Email Manager (https://www.virtueplanet.com/extensions/vp-email-manager), which allows you to edit all VirtueMart emails using standard Joomla Editors.

sirius

J3.10.12 | PHP 7.4.33 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 4.4.2 11100

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products