Our current confirmation email includes the order number, order summary (includes price), and customer information. We want to add the selected date and time of pick-up to the confirmation email. Our support advisor stated that we either need an app to accomplish this or someone will have to write code for these particular parameters. Can someone please give me insight as to how I should proceed?
If you want to implement this feature manually, you can customize the order confirmation email by modifying the notification templates in Shopify. Here’s a basic outline of how to proceed:
Capture the Pick-Up Date and Time: You need to capture the selected date and time during checkout. This can be done by adding a custom date picker field to the checkout process. However, Shopify’s checkout is quite locked down on the Basic plan, so you’ll need to be on Shopify Plus or use an app to create custom fields in the checkout form.
Modify the Order Confirmation Email: Once the date and time are captured in the checkout, you can modify the email notification templates:
Go to Shopify Admin > Settings > Notifications.
Find the Order Confirmation email template.
You can insert custom variables (such as order details, customer information, and custom fields like the pick-up date) into the email template.
For instance, if you stored the pick-up date and time as part of the order, you might be able to reference it using Liquid code like this:
{{ order.properties[‘Pick-up Date’] }} {{ order.properties[‘Pick-up Time’] }} Test the Changes: After making the necessary changes, make sure to test the confirmation email to ensure that the date and time appear correctly and that the email formatting looks as expected.
If you’re comfortable with coding and have the flexibility of Shopify Plus, customizing the notification templates directly could be the most cost-effective solution
You can use the Easify Product Options app to easily add Date and Time selection options to your product pages (using the Date Picker and Time Picker options). With just a few simple settings, all the selected info will be included in the confirmation email (the app provides a guide for this, or you can reach out to the Easify team for quick assistance).
The app lets you do more than just add date and time options. You can also set blockout dates (like weekends or specific holidays), cutoff times for same or next-day delivery, prep times (like 2 days, so customers can only select a delivery date 2 days from today), disable past dates, and much more.
It depends how you are calculating the delivery time like if you have fixed pattern for any product. We can write the logic for calculating the date in Email template.