Using the Discount Block in SmartPush (for SHOPLINE Merchants)

 

The Discount block in SmartPush allows you to insert discount codes into your emails to drive conversions. You can either sync ongoing promotions from your SHOPLINE admin or create dynamic discount codes directly in SmartPush.

Note: This article is for SHOPLINE merchants only.

 

In This Article

 


 

Synchronizing SHOPLINE Discount Codes for Emails

You can sync existing SHOPLINE promotions—including percentage discounts, fixed amount discounts, and free shipping offers—into your emails without reconfiguring promotion rules.

 

How to Configure Sync

  1. In your SmartPush app, go to Campaigns > Campaign List. From the list, choose a campaign that is active or scheduled to begin soon.
  2. Go to Discount > Sync with SHOPLINE, then choose a display method: 
    • Method 1: Show discount conditions (e.g. Spend $100, get $10 off) and guide users to click a button linking to a landing page where they can copy the code. 
    • Method 2: Display the discount code directly in the email with a usage button.
  3. Date Format Localization: Discount start/end dates will be automatically formatted based on user location:
    1. Mainland China: YYYY-MM-DD
    2. Australia: DD/MM/YYYY
    3. US & Canada: MM/DD/YYYY

For users in regions not listed above, the date format will default to one of the formats above based on system settings. The localized format is applied automatically to ensure clarity for users in different markets.

 


 

Manually Creating Discount Codes for Emails

SmartPush supports creating discount codes directly within the email editor. These are useful for both promotional campaigns and automated flows.

Scenario 1: Campaigns

  • Entry Point: When configuring a single send email campaign 
  • Supported Discount Code Type: Only supports Fixed Discount Code (same code for all recipients)

Scenario 2: Automation Flow

  • Entry Point: When setting up an automated email workflow
  • Supported Discount Code Type: Supports Dynamic Discount Codes (each recipient gets a unique code)

 

Discount Code Generation Logic

For Campaign Emails:

  • A fixed discount code is generated based on your configuration.
  • All recipients receive the same code.
  • Ensure the total usage limit is sufficient for your entire audience, or users may see a "code invalid" error.

For Automation Emails:

  • A unique discount code is generated for each recipient when the email is sent.
  • You can set a permanent or relative validity period (e.g., 3 days after receiving the email).
  • If the usage limit is exhausted, the block will be hidden from the email, and you’ll receive an alert in SmartPush.
Note: Discount codes created in SmartPush are synced to your SHOPLINE Admin with source = SmartPush.

 

Discount Code Format

SmartPush-generated codes follow a random format of 12 uppercase alphanumeric characters (e.g. A0TCN2BWDY1E).

 

Invalid Code Detection

If a synced discount is deleted in your SHOPLINE admin (e.g., you reused a popup ID tied to an expired code), SmartPush will:

  • Detect the invalid status
  • Prevent display on the customer end
  • Alert you to fix the configuration before continuing

Configuration Options

  • Code Type:
    • Fixed Code (same for all users)
  • Discount Type:
    • Percentage Discount
    • Fixed Amount (up to 999,999,999.00)
    • Free Shipping
  • Usage Conditions:
    • No minimum
    • Minimum spend (up to 999,999,999.00)
    • Minimum quantity (up to 999,999,999)
  • Usage Limits:
    • Unlimited
    • Total usage limit (max: 999,999,999)
    • Limit per user (based on checkout email)

  • Validity Period:
    • Never expire
    • Expire N days after email is sent
Note: Date format will adjust based on recipient’s region.
  • Button Settings:
    • Customize button text and link
    • Link to a site popup or any custom landing page
  •  

 

Synchronizing SHOPLINE Discount Codes for Popups

Similar to emails, you can sync existing SHOPLINE promotions into your popups using the popup editor. Simply select a discount type and rule from your active or scheduled promotions.

 

 


 

Manually Creating Discount Codes for Popups

SmartPush allows you to manually set up both fixed and dynamic discount codes for use in popups.

Entry Point: Popup editor > Add Discount Block

 

Supported Code Types:

  • Fixed Discount Code: A single code shown to all users.
  • Dynamic Discount Code: A different code is auto-generated daily and assigned to each user.
  • Each user sees only one code per campaign.
  • Ideal for time-sensitive or one-time-use discount campaigns.
Note: Combine this with a Countdown Timer block to enhance urgency and improve conversions.

 

Validity Settings

  • Fixed Discount Code:
    • Valid until: Campaign start date + N days
    • SmartPush will automatically monitor code status
    • If a code expires, the popup will automatically pause until reconfigured
  • Dynamic Discount Code:
    • Valid until: N days after the user first sees the popup
    • No need to manually manage expiry per user

 


 

Displaying Discounts 

In Emails:

Code Placeholder: 

  • Appears as XXXX-XXXX-XXXX in the editor, preview, or test sends.
  • Automatically replaced with the actual code upon send.

Usage Button:

  • Can be linked to any custom URL or a landing page with an EDM-triggered popup.

In Popups:

Code Placeholder:

  • Appears as XXXX-XXXX-XXXX before being pushed.
  • Automatically replaced with a valid code during display.

Discount Information:

  • Optionally display discount type, minimum requirement, and expiry period.
Have more questions? Submit a request

Comments