Roipas

Platform update · Shopify

New Liquid variables add request submission times to Shopify notifications

Roipas Editorial Team

Two new Liquid variables for Shopify’s “Request received” customer notification let you display when customers submitted return or cancellation requests.

Shopify has added two Liquid variables to the “Request received” customer notification template for displaying request submission times. The timestamp shows when the customer submitted the request, not when the email was sent.

New variables for return and cancellation requests

Use `return.requested_at` for return requests and `requested_edit.requested_at` for cancellation requests. Each variable provides the date and time the customer submitted the relevant request.

The timestamp stays the same if you resend the email

The displayed time is tied to the request submission, rather than the notification's send time. The timestamp therefore remains unchanged if you resend the email.

How to add the time to your notification

The default template has not changed, so the timestamp will not appear unless you add it. Go to Settings > Notifications > Customer notifications > Request received, select “Edit code,” and format the value with Liquid’s `date` filter.

Example: `{{ return.requested_at | date: "%B %-d, %Y %H:%M %Z" }}`. The Shopify Help Center has more information about customizing notification templates.

The new variables let you add request submission dates and times to the “Request received” notification; they are not included in the default template.

← Back to all blog posts