How To Use Shopify Variables
How To Use Shopify Variables
When integrating Shopify with your CRM, you can use Shopify variables to personalize communications and workflows with customer data from Shopify orders and abandoned carts. These variables are placeholders that automatically populate with specific order or customer details when used in emails, SMS messages, or other automated sequences.
Understanding Shopify Variables
Shopify variables follow a specific format, usually wrapped in double curly braces like {{variable.name}}. When your CRM processes a Shopify-related trigger (such as an abandoned checkout or a placed order), it replaces these variables with the actual data from that event.
Variables are organized into logical groups based on the type of information they represent, such as order details, customer information, pricing, and address data.
Common Shopify Variables
Here are some of the most frequently used Shopify variables you can incorporate into your CRM automations:
- Order ID:
{{order.id}}– The unique identifier for the order. - Order Number:
{{order.number}}– The order number displayed to the customer. - Customer Email:
{{order.customer.email}}– The email address associated with the order. - Customer First Name:
{{order.customer.first_name}}– The customer’s first name. - Total Price:
{{order.total_price}}– The total amount of the order. - Discount Code:
{{order.discount_code}}– The discount code applied to the order, if any.
Where to Use Shopify Variables
You can use these variables in any text-based area of your CRM that supports dynamic content, such as:
- Email templates
- SMS message bodies
- Task descriptions or notes
- Custom fields or tags
Simply insert the variable code where you want the dynamic data to appear. When the automation runs, the variable will be replaced with the actual value from the Shopify order or checkout.
Trigger Availability
Note that some variables are only available in certain triggers. For example:
- Variables like
{{order.abandoned_checkout_url}}are typically available for abandoned cart triggers. - Variables like
{{order.number}}or{{order.total_price}}are usually available only after an order is placed.
Always test your automations to ensure the variables populate as expected based on the trigger you’re using.
Advanced Variables (Coming Soon)
Soon, you’ll be able to use more advanced variables to access detailed information such as individual line items or tax details within an order. These will allow for even more personalized and granular communication based on the specific products or charges in a customer’s cart.
Keep an eye on future CRM updates for these enhanced variable options.