When sending out abandoned cart emails there’s a small chance of creating an overbooking. This happens when a customer abandons their checkout and returns later to complete the order, but during that time, another customer may have already booked the same date or time.
Abandoned Cart Email Template
The default template takes the customer directly to the checkout page. Since Apps and Theme Developers can not change this page (unless you are on Shopify Plus) we can not do anything if the date/time is now unavailable. What can be done instead is to modify the template so that it takes the customer to the product page where they can choose the date and time again, only if it is available.Â
To update the template follow these steps:
1. Access the abandoned checkout email template via the notifications section in Shopify admin.Â
2. Remove the following line of code in the template:
<td class="button__cell"><a href="{{ url }}" class="button__text">Items in your cart</a></td>
3. Replace the line with the below code:
 <td class="button__cell"><a href="{{ shop.url }}{{ line_items.first.product.url }}" class="button__text">Items in your cart</a></td>
⚠️ Important Notes
-
This change ensures that customers are redirected to the product page to reselect valid booking options.
-
Editing email templates requires some coding familiarity with HTML and Liquid.
Â
Â
Comments
0 comments
Please sign in to leave a comment.