Question

How to test replenishment flow dynamic discount code?

  • 29 April 2024
  • 1 reply
  • 18 views

Badge +2

Is there a way to test out a post purchase discount dynamic discount code without purchasing? 

I want to make sure that my replenishment flow is working correctly but it does not trigger until after 20 days after placing an order. The discount also expires after 24 hours. 

I see Klaviyo suggest the following steps:

Test your flow email's coupon

Before you send our the flow and coupon to your audience, we suggest testing it first.

Test a coupon with a variable expiration date (e.g., 7 days)

  1. In the flow builder, click Review and turn on.
  2. Change the status to Manual.
  3. Click Turn on
  4. Trigger your flow by performing the trigger action (e.g., filling out a sing-up form to join a certain list). Your flow will automatically generate 100 coupons upon you triggering the flow.

1 reply

Userlevel 2
Badge +3

Hello @topgummy 

Welcome to the Community!

Yes, there is a way to test each component of your flow such as, the timing, coupon generation, and expiration, without waiting for 20-day period or without making a purchase. Outlined below is a step by step approach to ensure everything is working as you intended.  

  1. Adjust the trigger for testing: Since your flow is normally triggered 20 days after a purchase, you'll need to create a test that would mimic this behavior without waiting the actual 20 days. You can adjust the flow's trigger temporarily for testing purposes.
  2. Create a manual list: Set up a manual list in Klaviyo with those who will be testing the flow. 
    • Navigate to the Lists & Segments page in your Klaviyo dashboard.
    • Click on the 'Create List / Segment' button.
    • Choose 'List' and give it a name, such as “Test List for Post-Purchase Flow.”
    • Save the list.
  3. Adjust the flow for testing
    • Go to the Flows section in Klaviyo.
    • Select the specific flow you want to test.
    • Click on Edit Flow.
    • Change the trigger settings temporarily to something immediate, such as being added to the test list you created.
    • Adjust the timing of the emails to trigger sooner than 20 days — you could set it to a few minutes or hours after being added to the test list.
  4. Review and Turn on the Flow:
    • In the flow builder, click on Review and switch the status to Manual.
      Click, Turn on. This action allows the flow to be triggered manually rather than automatically based on the original trigger conditions.
  5. Manually Add to List: Manually add your test email to the newly created list to trigger the flow:
    • Go back to the Lists & Segments page.

    • Open your test list (“Test List for Post-Purchase Flow”).

    • Click ‘Add Subscribers’ in the list options.

    • You can add subscribers by typing the email address manually or by importing a CSV file if you are testing multiple emails.

    • Confirm the addition.

  6. Trigger the flow: 
    • By adding the your email to the list, this should automatically trigger the flow based on the adjustments made to the flow trigger.
  7. Review the Output:

    • Check your email to see if you received the email with the discount code.
    • Ensure that the discount code arrives with the correct expiration settings (e.g., expires in 24 hours).
  8. Verify Coupon Functionality

    • Using the code on your website checkout to see if it applies correctly.
    • Checking that the code expires as set (24 hours after generation, in your case).
  9. Reset the Flow:

    • After testing, remember to revert any changes you made to the flow's trigger and timing settings back to their original states.

These steps should allow for you to be able to review/test the flow without needing to wait for the actual time delay or make a purchase. 

Thank you for reaching out with your question. I hope this response clears things up for you.

Cheers,
Bethany

Reply