Join us
@maryhlumilina ă» Mar 15,2023 ă» 3 min read ă» Originally posted on mailtrap.io
Transactional emails are emails that are triggered when a user takes a specific action.Â
For example, when you forget your super difficult password (mydogmax111) for the 100th time and request a reset, youâll receive an email with a password reset link. That would be a transactional email.Â
Such emails are important as they provide users with necessary information about further steps, confirm their action, or let them know if something was unsuccessful. Refer to this article to learn more about WordPress transactional emails.Â
By default, WooCommerce includes certain types of transactional emails that can be modified to match your needs. These are usually WooCommerce order emails:Â
These templates are available in plain text, HTML, or multipart formats. You can use them as they are or change their color or banner image. For that, youâd need to access WooCommerce email settings and scroll down to the 'Email template' section.Â
Itâs also possible to change a particular template, for example, processing order. Simply press the âManageâ button across the template. Fill in the empty fields, such as email subject, heading, additional content, and choose the email type (text, HTML, or multipart). Finally, hit âSave changesâ.
If thatâs not enough and you need more tweaks, just copy the template file below those fields by pressing âCopy file to themeâ.Â
Navigate to the âAppearanceâ tab in the WordPress dashboard and choose âTheme file editorâ. Youâll see the âTheme filesâ tab on the right portion of the screen. Scroll down to find âWooCommerceâ. Expand it and press âemailsâ which will open the menu with the list of templates you copied.Â
Choose the template you want to tweak and start coding.Â
Note: itâs recommended to create a child theme and make changes there to avoid losing all the customizations in the parent theme.Â
WooCommerceâs default customization options are limited, but there are multiple plugins that can help with that (more on that below).Â
Though plugins enable you to customize the design, you still have to come up with the content yourself or use templates. Hereâs an order confirmation template from Mailtrap:Â
Subject: Your [SERVICE] order confirmation
Your order is confirmed!
[NAME], thanks for shopping with us. Here are your order details:
[orderID]
[product + picture]
[quantity/other customizations]
[price_paid + payment method] // if payment by card, the last four digits should be used
[shipping + billing address]
We estimate that your order will arrive in 2-3 business days. Click the button below to track it.
TRACK YOUR ORDER
Forgot to add something? Here are the items our clients frequently buy together with [PRODUCT]. Get them within the next 24 hours, and weâll ship everything together.
[FAQs]
Need any support? Send a reply to this message or contact us right away [link].
Thanks for your order and we hope you enjoy!
The easiest way to test email sending in WooCommerce is to send a test email with WP Mail SMTP. Once the SMTP connection is established, you should navigate to the âEmail Testâ tab, enter your email address, and toggle the HTML switch on or off. Press âSendâ and youâll find the email in your mailbox within minutes.Â
If the authentication was unsuccessful or some other error occurred, youâll see the notification immediately.
Another option is to create a sample order in your WooCommerce store. Donât worry, you wonât send email to customer and scare them off.Â
What you have to do here is go to WooCommerce > Settings > Emails tab. Choose either âNew orderâ, âCanceled orderâ, or âFailed orderâ templates. These three templates can be addressed to you.Â
Click âManageâ and enter your email address. Make sure âEnable this email notificationâ is toggled on. Now go to the âOrdersâ section and hit âNew Orderâ. You donât have to fill in anything here. Just pay attention to the âCustomerâ field â it should indicate âGuestâ.Â
Find the âOrder Actionsâ tab and choose âResend new order notificationâ from the dropdown menu. Press âCreateâ and youâll receive an order notification. While youâre at it, you could also check your template visually.
To read more about different plugins to send emails via WooCommerce, follow the link with the original guide by Ketevan Bostoganashvili, Mailtrap.
Join other developers and claim your FAUN account now!
Influence
Total Hits
Posts
Only registered users can post comments. Please, login or signup.