NOTE: This article assumes that you have already created a funnel, associated product(s) and have a One Step Order Form in the funnel. If you haven't done these items, we highly recommend that you check out the other videos in the Funnel Builder section first. Additionally, the Coupon Feature doesn’t support subscription products, only one time products. However, Promo Codes, shown in Part 2, will work for recurring purchases.
Navigate to the Payments Page, and select “Coupons”
From here, fill out the necessary fields
Choose between Fixed Coupon and Percentage Coupon
Set the time range this Coupon is Active.
GIF 1
Navigate to the funnel or website where you have the One or Two Step Order Form you would like to add the Coupon Code to.
Go to the Checkout Page, and Click ‘Advanced Settings.’
Toggle ‘ON’ “Enable Coupon Codes”
Save + Preview to see your updated Checkout Form.
GIF 2
Note: 100% Off Coupon
Your customer can redeem a coupon code to get a 100% off on the cart value.
They will still need to enter their card details in case it is required for upsells in the next steps
Only Stripe can be used to give 100% off on order amounts, this will not work with Paypal. In case both Stripe and Paypal exist, the Paypal option will not show up.
“Card details will be used for verification purposes” will show beside the card element during the $0 checkout
NOTE: This will only work with one full price product and one discount product. The code is for One Step Order Form products only. It is not for Bump or Upsell products.
Edit the Funnel step where the One Step Order Form resides
In Settings, click on Tracking Code
Select Footer Code
Paste in Copied Code (from the bottom of this article)
Before saving, scroll up to the top of the code
Type in the Coupon Code you wish to use. You should type over the examples 'TESTCODE', 'DISCOUNT', 'PROMO'
NOTE: If you want to use more than one coupon code, you can enter multiple codes separated by commas. This is the default setting in the code you copied in.
Click Yes, Save
Preview your page.
Enter in details for the first step.
Enter in your promo code for the second step and watch your discount product
<style>
.d-none_0x4e4858 {
display: none !important;
}
</style>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
window.hlpt = window.hlpt || {};
window.hlpt.mycodes = [
/DO NOT EDIT ANYTHING ABOVE THIS LINE/
"TESTCODE", "DISCOUNT", "PROMO" /Enter your desired promo codes here, similarly as shown/
/DO NOT EDIT ANYTHING BELOW THIS LINE/
];
function hlpt_apply_coupon_code(product_regular, product_offer, form_base, product_description) {
window.hlpt.mycodes = window.hlpt.mycodes.map(function (a) {
return a.toUpperCase();
});
if ($("#promo_code").length == 0) {
var coupon_input = '<input type=\'text\' id=\'promo_code\' name=\'promo_code\' placeholder=\'Enter promo code...\' class=\'form-input\'/>';
$('.product-cost-total').last().append(coupon_input);
}
$(form_base + ' [id=' + product_offer + ']').closest(product_description).addClass("d-none_0x4e4858");
$('body').on('keyup', '#promo_code', function (e) {
if (window.hlpt.mycodes.indexOf($('#promo_code').val().toUpperCase()) == -1) {
$(form_base + ' [id=' + product_regular + ']').click();
$(form_base + ' [id=' + product_offer + ']').closest(product_description).addClass("d-none_0x4e4858");
$(form_base + ' [id=' + product_regular + ']').closest(product_description).removeClass("d-none_0x4e4858");
} else {
$(form_base + ' [id=' + product_offer + ']').click();
$(form_base + ' [id=' + product_regular + ']').closest(product_description).addClass("d-none_0x4e4858");
$(form_base + ' [id=' + product_offer + ']').closest(product_description).removeClass("d-none_0x4e4858");
}
});
}
function hlpt_handle_products_description() {
var product_regular = 'regularprod';
var product_offer = 'offerprod';
var form_base = ".form-payment .product-detail .product-description";
var product_description = ".product-description";
if ($(form_base).length == 0) {
form_base = ".form-payment .product-detail .--mobile-product-description";
product_description = ".--mobile-product-description";
}
var all_pds = $(form_base);
if (all_pds.length > 1){
$(all_pds[0]).find('input[type=radio]').attr('id', product_regular);
$(all_pds[1]).find('input[type=radio]').attr('id', product_offer);
}
hlpt_apply_coupon_code(product_regular, product_offer, form_base, product_description);
}
$(function () {
var notGloballyApplied = true;
if (Array.isArray(window.hlpt.mycodes)) {
var observe = new MutationObserver(function (mutations) {
if ($('.product-cost-total').length != 0 && notGloballyApplied) {
notGloballyApplied = false;
hlpt_handle_products_description();
}
});
observe.observe(document.body, {
childList: true,
subtree: true
});
}
});
</script>