Add Supertime details to my SMS / text notification templates

Do you want to include Supertime details in your SMS notification templates? Supertime supports that!

You can show Supertime's selected date, time and delivery method in any of your SMS notifications using Shopify's order attribute tags. Paste the following snippets into your notification templates in your Notifications settings:

  • Date: {{ order.attributes["Supertime Delivery Date"] | date: format: "basic" }}
  • Time (default - 24 hour time): {{ order.attributes["Supertime Timeslot"] }}
  • Time (12 hour time or custom time formats):{{ order.attributes["Supertime Timeslot"] | slice: 0,4 | time_tag: '%-I:%M %p' }} - {{ attributes["Supertime Timeslot"] | slice: 8,12 | time_tag: '%-I:%M %p' }}
  • Delivery Method: {{ order.attributes["Supertime Delivery Method"] }}

Here is a sample that you can copy and paste directly into your template:

Date: {{ order.attributes["Supertime Delivery Date"] | date: format: "basic" }} Time: {{ order. attributes["Supertime Timeslot"] | slice: 0,5 | time_tag: '%-I:%M %p' }}-{{ attributes["Supertime Timeslot"] | slice: 8,12 | time_tag: '%-I:%M %p' }} Method: {{ order.attributes["Supertime Delivery Method"] }}</p> 

For example, in your order confirmation SMS template, you'll want this code somewhere outside of a if block that would hide this information unnecessarily:

Steps:

  1. Visit your Notification Settings.
  2. Click on the SMS template you wish to edit.
  3. Located the section of code where you would like to insert your Supertime details.
  4. Paste in the relevant code snippets above.
  5. Click the save button.
  6. Need to customize the date format for your "basic" filter? refer to this document