All posts

Published 06 June 2025 in Shopify

How to Pull Up Order Details From Shopify in Klaviyo

Shopify merchants using Klaviyo for email marketing often struggle with accessing detailed order information in their campaigns and automated flows.

by Tyson

Shopify merchants using Klaviyo for email marketing often struggle with accessing detailed order information in their campaigns and automated flows. The integration between these two powerful platforms creates opportunities for highly personalized customer communications, but many users don’t fully understand how to leverage the rich order data available. Mastering this connection transforms generic email campaigns into targeted, revenue-driving communications that customers actually want to receive.

What Order Data Syncs Between Shopify and Klaviyo

When you connect Shopify with Klaviyo, the integration automatically transfers comprehensive order information that becomes the foundation for personalized marketing campaigns. The initial sync includes 90 days of recent data, followed by a complete historical transfer that can take anywhere from minutes to several days depending on your store’s size. This seamless data flow ensures that every customer interaction, purchase detail, and order status update becomes available for your marketing efforts.

Boost Your Conversion Instantly with Nudgify: Turn your website visitors into customers with real-time Social Proof and FOMO Nudges. Get Started Now

The synced data includes multiple event types that capture different aspects of the customer journey. Placed Order events contain overall transaction details like order numbers, total values, and discount codes used. Ordered Product events provide granular information about each individual item purchased, including product names, variants, SKUs, and quantities. Additional events like Fulfilled Order, Cancelled Order, and Refunded Order give you complete visibility into the order lifecycle.

Essential Shopify Events in Klaviyo

Understanding which events sync from Shopify helps you choose the right triggers for your email campaigns and flows. Each event carries specific data properties that you can reference in your marketing communications:

  • Placed Order: Contains complete transaction details including order number, total value, shipping address, and all purchased items
  • Ordered Product: Tracks individual product details with variant information, SKUs, collections, and product-specific attributes
  • Fulfilled Order: Includes shipping and tracking information once orders are processed and ready for delivery
  • Checkout Started: Captures abandoned cart data with product details and customer information for recovery campaigns

The real-time nature of this data sync means that new orders immediately become available in Klaviyo for triggering automated flows. However, any modifications made to orders in Shopify after they’re initially processed won’t update in Klaviyo, making it crucial to understand when specific data becomes available for your marketing use.

How to Access Order Numbers in Email Templates

Displaying order numbers in your Klaviyo emails provides customers with essential reference information while adding a professional touch to your communications. The process involves using specific variable syntax that pulls this information directly from the Shopify order data. For most Shopify integrations, the order number variable follows the format {{ event.extra.order_number|default:'' }}, which includes a default empty value to prevent display errors if the order number is unavailable.

Increase Trust & Sales with Social Proof

Boost trust, engagement, and conversions with Social Proof — tailored for any industry and easy to integrate. Seamlessly manage client access with our team portal.

Get Started Now

This variable works seamlessly in any flow triggered by Shopify order events, making it perfect for order confirmations, shipping notifications, and follow-up campaigns. The placement of order numbers typically appears prominently near the top of transactional emails, often formatted as “Order #{{ event.extra.order_number|default:” }}” to clearly identify the reference information. Many merchants also include order numbers in email subject lines to help customers easily locate specific order communications in their inbox.

Testing Order Number Display

Before launching any email campaign that includes order numbers, thorough testing ensures the variable displays correctly across different scenarios. Use Klaviyo’s preview function in the email editor to see how the order number appears with real customer data. The preview tool shows all available event properties, allowing you to verify that the order number variable pulls the correct information and formats properly within your email design.

Different e-commerce platforms may use slightly different variable syntax, so always confirm the exact format for your specific integration. BigCommerce users, for example, would use {{ event.extra.id }} instead of the Shopify order number variable. This attention to platform-specific details prevents display issues and ensures consistent customer experiences across all your order-related communications.

Displaying Product Details from Customer Orders

Beyond basic order information, showcasing specific product details in your emails creates more engaging and informative customer communications. Klaviyo stores detailed product information in the Items array within order event data, allowing you to reference individual product names, prices, quantities, and images. For single-product orders, you can directly access these details using variables like {{ event.Items.0.ProductName }} for the first product’s name or {{ event.Items.0.ImageURL }} for its associated image.

Most customer orders contain multiple products, requiring a more sophisticated approach to display all purchased items. Klaviyo’s content repeat function loops through the entire Items array, automatically generating content for each product in the order. This dynamic approach ensures that whether a customer purchases one item or twenty, your email template adapts to show complete order information without manual intervention.

Creating Dynamic Product Loops

The content repeat function uses Liquid templating syntax to iterate through product data and generate customized content for each item. A basic product loop structure includes the product name, price, quantity, and conditional image display to handle cases where product images might not be available. This approach creates professional-looking order summaries that adapt to any order size or product combination.

Advanced product loops can include additional details like product variants, SKUs, or direct links back to product pages on your store. These enhanced displays not only provide comprehensive order information but also create opportunities for repeat purchases by making it easy for customers to reorder or explore related products. The flexibility of Klaviyo’s templating system allows for extensive customization while maintaining consistent formatting across all your order communications.

Building Comprehensive Order Summary Tables

Professional order confirmation emails require well-structured product displays that clearly present all purchase details in an organized format. Dynamic order summary tables combine HTML table elements with Klaviyo’s content repeat functionality to create adaptable layouts that work for any order size. These tables typically include columns for product information, quantities, individual prices, and line item totals, providing customers with complete transaction transparency.

The table structure uses HTML thead, tbody, and tfoot elements to organize content logically. The header section defines column titles, while the body contains the dynamic product loop that populates individual order items. The footer section displays order totals, including subtotals, shipping costs, taxes, and final amounts. This comprehensive approach ensures customers receive detailed receipt information that matches their expectations from professional e-commerce communications.

Enhancing Table Functionality

Modern order summary tables benefit from Klaviyo’s built-in filters that format monetary values and perform calculations automatically. The currency filter ensures all price displays match your store’s formatting standards, while mathematical filters like multiply calculate line item totals without requiring manual computation. These automated features reduce template complexity while maintaining accuracy across all order communications.

Mobile responsiveness becomes crucial when designing order summary tables, as many customers read emails on smartphones and tablets. Testing your table designs across different devices and email clients ensures consistent display quality regardless of how customers access their order information. Consider simplified mobile layouts or responsive design techniques that maintain readability on smaller screens while preserving essential order details.

Adding Shipping and Tracking Information

Customers expect detailed shipping information in their post-purchase communications, making this data essential for reducing support inquiries and improving satisfaction. Klaviyo can access shipping addresses, tracking numbers, and carrier information from Shopify order events, though the availability of specific details depends on when the email is triggered. Basic shipping addresses are available immediately after order placement, while tracking information typically becomes available only after order fulfillment.

For shipping address display, you can reference various address components using variables like {{ event.ShippingAddress.FirstName }}, {{ event.ShippingAddress.Address1 }}, and {{ event.ShippingAddress.City }}. Conditional logic handles optional address fields like Address2, ensuring clean formatting even when customers don’t provide secondary address information. This approach creates professional address displays that match standard shipping label formats.

Implementing Tracking Information

Tracking details require careful event selection to ensure information availability when emails are sent. Fulfilled Order events typically contain tracking numbers, carrier information, and tracking URLs that weren’t available during initial order placement. Using conditional statements prevents display errors when tracking information isn’t yet available, while providing comprehensive details once shipments are processed.

Advanced tracking implementations can include carrier-specific formatting and direct links to tracking pages. Many shipping carriers provide branded tracking experiences that customers recognize and trust. Including these direct links in your emails reduces the steps customers need to take to check their order status, improving their overall experience while reducing support inquiries about shipment locations.

Using Conditional Logic for Personalized Experiences

Not every customer order follows the same pattern, making conditional logic essential for creating truly personalized email experiences. Klaviyo’s Liquid templating syntax supports sophisticated conditional statements that adjust email content based on order characteristics like product quantities, discount usage, shipping methods, or customer locations. This flexibility allows single email templates to serve multiple scenarios while maintaining relevance for each recipient.

Common conditional logic applications include displaying different messages for single versus multiple product orders, showing discount information only when codes were used, and customizing content based on order values or customer segments. These dynamic adjustments make emails feel personally crafted for each recipient rather than generic mass communications. The result is higher engagement rates and stronger customer relationships built on relevant, timely communications.

Advanced Personalization Techniques

Sophisticated conditional logic can reference product categories, customer purchase history, or geographic locations to create highly targeted content within individual emails. For example, skincare product purchases might trigger beauty tips and care instructions, while electronics purchases could include setup guides or accessory recommendations. This level of personalization transforms transactional emails into valuable customer resources that extend beyond basic order information.

International customers often require special considerations for shipping times, customs information, or currency displays. Conditional logic based on shipping addresses or customer locations allows single email templates to provide appropriate information for domestic and international orders. This approach maintains template simplicity while ensuring all customers receive relevant, accurate information about their specific order circumstances.

Managing Multi-Product Orders Effectively

Complex orders with multiple products require careful handling to ensure all items display correctly without overwhelming email recipients. Klaviyo’s content repeat function excels at managing these scenarios, automatically adjusting email content to accommodate any number of products while maintaining consistent formatting. The key lies in understanding how to structure loops effectively and handle edge cases that might occur with diverse product catalogs.

Product loops can include conditional logic to handle different product types, variant options, or missing information gracefully. Some products might have size and color variants while others don’t, requiring flexible template structures that adapt to each item’s specific attributes. Similarly, products without images need placeholder handling to maintain visual consistency throughout the email display.

Optimizing Large Order Displays

Orders with many items can create excessively long emails that overwhelm recipients and reduce engagement. Strategic approaches include limiting displayed products to the first few items with summary information about remaining products, or creating collapsible sections that allow customers to expand full order details when desired. These techniques maintain email readability while ensuring complete order information remains accessible.

Performance considerations become important with large product catalogs or orders containing many items. Efficient template structures minimize processing time while maintaining display quality. Testing with various order sizes helps identify potential issues before they affect customer communications, ensuring consistent performance across all order scenarios.

Best Practices for Order Data Implementation

Successfully implementing Shopify order data in Klaviyo requires attention to several key practices that ensure reliable, professional results:

  1. Always include default values in your variables to prevent display errors when data might be missing or unavailable.
  2. Test email templates thoroughly with different order scenarios including single products, multiple items, and various customer segments.
  3. Use conditional logic strategically to create personalized experiences without overcomplicating template structures.
  4. Implement proper fallback options for missing images, empty fields, or incomplete data to maintain professional appearances.
  5. Consider mobile responsiveness when designing order displays, as many customers read emails on mobile devices.
  6. Regularly review and update templates as your product catalog or business requirements change over time.

These practices form the foundation for reliable, scalable email marketing systems that grow with your business while maintaining consistent customer experiences.

Troubleshooting Common Order Data Issues

Even with proper setup, you might encounter challenges when working with Shopify order data in Klaviyo. Understanding common issues and their solutions saves time and prevents customer communication problems. Order tags added in Shopify after order processing don’t sync to Klaviyo because the integration only captures data at the moment events occur. This limitation requires careful timing considerations when using tags for segmentation or personalization.

Variable syntax errors represent another frequent challenge, often caused by incorrect property names, missing closing braces, or case sensitivity issues. The preview function in Klaviyo’s email editor provides the most reliable method for identifying correct variable syntax and troubleshooting display problems. Always copy variable names directly from the preview tool rather than typing them manually to avoid syntax errors.

Data Availability and Timing

Historical order data limitations can affect newly integrated accounts, as Klaviyo initially syncs only 90 days of recent data before beginning complete historical transfers. Understanding these timing constraints helps set appropriate expectations for campaign launches and data availability. Additionally, remember that order modifications in Shopify after initial processing don’t update in Klaviyo, making event timing crucial for accessing complete information.

Empty or null values in order data can cause display issues if not handled properly with default filters and conditional logic. Robust template design anticipates these scenarios and provides graceful fallbacks that maintain email quality even when some data points are unavailable. Regular testing with various order types helps identify potential issues before they affect customer communications.

Maximize Your Shopify Email Marketing Success

Mastering Shopify order data integration with Klaviyo transforms your email marketing from generic broadcasts into powerful, personalized customer communications that drive real business results. The techniques covered in this guide provide the foundation for creating professional order confirmations, targeted follow-up campaigns, and sophisticated automation flows that respond to actual customer behavior. Success comes from understanding both the technical implementation details and the strategic applications that create meaningful customer experiences.

Your next step involves implementing these strategies systematically, starting with basic order number and product displays before advancing to complex conditional logic and personalized content. Regular testing and optimization ensure your email campaigns continue performing effectively as your business grows and evolves. The investment in properly configured order data integration pays dividends through increased customer satisfaction, reduced support inquiries, and higher lifetime customer values.

Ready to transform your Shopify email marketing with powerful order data integration? Start by auditing your current email templates and identifying opportunities to incorporate the personalized order details that customers expect and appreciate in their communications.

Most Read Articles