Conditional Logics

Learn to apply condition logic in your email templates to adjust their content based on factors like user role, cart items, payment methods, and more.

Introduction

The Conditional Logics addon enhances the functionality of the Spark Email Editor by providing additional features that improve user experience and email design capabilities through conditional content rendering. This document outlines the installation, features, and usage of the addon.

Conditional logic features

  • User Role - Customize email template using conditional logic and dynamically adjust its content that match the user’s role.

  • Order Total - Adjust email templates according to the customer’s order total and send personalized email content that enhances conversions.

  • Coupons - Use conditional logic to tailor content in your email templates for specific coupon users. Send targeted emails based on the customer's coupon activity.

  • Country - Use conditional logic and adjust your email templates based on the customer’s location, offering country-specific content for each user.

  • Products - Use conditional logic to personalize email template content for specific products that your customers have purchased or shown interest in.

  • Payment Method - Apply conditional logic to tailor email templates based on payment methods. Ensure each customer receives relevant email content based on their chosen payment method.

  • Categories - Dynamically adjust the content of your email templates based on the category your customer has bought a product.

Requirements :-

Let's get started,

The Conditional logic can be configured for any part, column or even the entire body of the email template. Multiple conditions can be assigned for a single part or column of the templates.

Scenario

How to set a Conditions for the entire New order template ?

  1. Select the New order template

  1. Navigate to Styles and Select the Section or part you want to be covered under a condition. (In this case the entire Body) and Click the Tab "Add Conditional Logic"

  1. Select and configure the Condition for the selected template, so that the template will be displayed only when the condition is matched.

  1. Save the condition by clicking "Add Condition"

  1. After adding multiple condition, select how the condition relationship should be "AND" or "OR"

  1. Save the template after the configuration.

  2. Screenshot of the Mail

NOTE :- The conditions can be used dynamically on different parts and columns of a template using the "AND" & "OR" logic as multiple Conditions can be added to a single part, column, body or the entire template.

Still unclear ? Please submit a support request. We are always happy to assist you :)

Last updated