How to sell using discount codes from a ClickFunnels checkout

  • Updated

Offering discounts can entice end-users to engage or build loyalty with your products. With Zapier integration, this is now possible in Passionapps.

IN THIS ARTICLE

1.How to set up discount codes for ClickFunnels checkout

2.Connect the ClickFunnels checkout page to your Passion.io account

If you haven’t set up your Zapier integration yet, please click  HERE.

How to set up discount codes for ClickFunnels checkout

1. Set up two pricing plans on your PassionProducts App Builder: full price and discounted.

Screen_Shot_2021-10-04_at_10.05.52_PM.png

Don't forget to publish the new pricing plans on your web app.

2. Set up a funnel with a checkout page

Screen_Shot_2021-10-07_at_10.24.22_PM.png

3. Inside products, set up a full price and discounted plan

Screen_Shot_2021-10-07_at_10.25.07_PM.png

3.1 Right-click on the Edit button and copy link address of both the Full Price and Discounted 

Screen_Shot_2021-10-07_at_10.25.56_PM.png

3.2 Paste the two link addresses on your Note Pad first. The highlighted ID number will be used later.

Screen_Shot_2021-10-07_at_11.23.44_PM.png

3.2 Copy paste this code on your NotePad too:

<script>

var mainProd = '3340801';

var promoProd = '3340840';

var promoCodes = ['25OFF']; //PROMO CODES SHOULD ALWAYS BE UPPER CASE

//var head = '<div class="de elHeadlineWrapper de-editable" id="headline-72651" data-de-type="headline" data-de-editing="false" data-title="headline" data-ce="true" data-trigger="none" data-animate="fade" data-delay="500" style="margin-top: 20px; cursor: pointer; outline: none; display: block;"><div class="ne elHeadline lh3 elMargin0 elBGStyle0 hsTextShadow0 elFont_raleway hsSize27" style="text-align: left;" data-bold="inherit" contenteditable="false"><b>Have a Promo Code?</b></div></div>';

var head = '';

var field = '<input type=\'text\' id=\'promo_code\' name=\'promo_code\' placeholder=\'Enter promo code...\' class=\'elInput elInput100 elAlign_left elInputSmall elInputStyl0 elInputBG1 elInputBR5 elInputI0 elInputIBlack elInputIRight elInputStyle1 elInputSmall garlic-auto-save\' />';

$(document).ready(function () {

$('.elOrderProductOptions').last().after(head + field);

$('.elOrderProductOptinProductName [value='+promoProd+']').closest('.elOrderProductOptinProducts').hide();

$('#promo_code').on('keyup', function (ev) {

if ($.inArray($('#promo_code').val().toUpperCase(),promoCodes) > -1) {

$('.elOrderProductOptinProductName [value='+promoProd+']').click();

$('.elOrderProductOptinProductName [value='+mainProd+']').closest('.elOrderProductOptinProducts').hide();

$('.elOrderProductOptinProductName [value='+promoProd+']').closest('.elOrderProductOptinProducts').show();

} else {

$('.elOrderProductOptinProductName [value='+mainProd+']').click();

$('.elOrderProductOptinProductName [value='+promoProd+']').closest('.elOrderProductOptinProducts').hide();

$('.elOrderProductOptinProductName [value='+mainProd+']').closest('.elOrderProductOptinProducts').show();

}

});

});

</script>

3.3 Replace the script var mainProd's ID with the full price and discounted product ID as shown in the example below.

Screen_Shot_2021-10-07_at_10.29.26_PM.png

3.4 Choose the promo code (e.g. PASSION) that you prefer and make sure it is in capital letters. Save all these for later.

Screen_Shot_2021-10-07_at_10.30.27_PM.png

4. Go back into your funnel > Overview of Checkout Page > Click Edit Page

Screen_Shot_2021-10-07_at_10.31.35_PM.png

5. Click on Settings > Tracking Code > Footer Code

Screen_Shot_2021-10-07_at_10.32.47_PM.png

5.1 Paste the code from your notepad (the code from Step 3)

Screen_Shot_2021-10-07_at_10.33.41_PM.png

5.2 Click Save, then click Preview

Screen_Shot_2021-10-07_at_10.34.39_PM.png

6. When you do the preview, the bonus code field should appear. To test if it’s working, try typing the code on in the bonus code field. Once the code is in the field, the price should change from full to discounted.

A

Screen_Shot_2021-10-04_at_10.51.57_PM.png

B

Screen_Shot_2021-10-04_at_10.53.19_PM.png

 

Connect the ClickFunnels checkout page to your Passion.io account

For your end-users to have access to the correct content and receive an email with the instructions to set up a password, proceed with Zapier integration 

1. Create two separate zaps for both pricing plans 

Zap for Full Price Product:

Screen_Shot_2021-10-04_at_10.10.09_PM.png

Zap for Discounted Product:

Screen_Shot_2021-10-04_at_10.12.20_PM.png

2. Set up the trigger and select the following:

Choose app & event: ClickFunnels

Trigger Event: New Successful Purchase

Choose account: ClickFunnels

Set up Trigger: Funnel ID

**To get your funnel ID, copy the digits after the word funnels/ from the ClickFunnels URL

Screen_Shot_2021-10-08_at_8.13.04_PM.png

Select your funnel step. If you can't find it in the list, copy the digits after the word steps/ from the ClickFunnels URL

Screen_Shot_2021-10-07_at_10.42.22_PM.png

Test the trigger afterwards and it should work.

2.1 Set up the filter. Under Filter setup & testing, type in the word “full” so the zap will only continue if the word is detected

Screen_Shot_2021-10-04_at_10.23.46_PM.png

2.2 Connect to Passion.io, choose your account and type in your user email address and password

Screen_Shot_2021-10-04_at_10.27.17_PM.png

2.3 Fill out the required fields: email address, first name, last name,country, plan ID, and amount

Screen_Shot_2021-10-07_at_10.46.03_PM.pngScreen_Shot_2021-10-07_at_10.50.03_PM.png

Make sure that the sales price in cents matches what’s in your Plan ID.

For the Send password mail, select True so end-users who purchased the product will get a password reset email to access the product

3. Test the action and switch on your zap

4. Do the exact same thing with the other zap (for the discounted) but change the filter and the product connected to the discounted plan

5. Do a test purchase. Afterwards, go to your app builder’s PassionMetrics and check if the test email address was added. 

SUGGESTED ARTICLES

Still have questions that were left unanswered? Check out our other categories for more information or use the search bar on top to find specific keywords.

 

Screenshot_2021-05-07_081147.jpg

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.