Auto-Apply a Coupon Discount by Adding the Code Directly to the Checkout
Written By Angela L
Last updated 10 months ago
Vendors can add a coupon code to auto-apply it to the product offer without requiring your customers to manually enter and apply the code.
Itβs simple to set up. You can follow the instructions below for each checkout type.
β Checkout Pages
All you need to do is add the following to the END of your checkout URL.
?cc=COUPONCODE
Replace COUPONCODE with the actual coupon code for your product.
For example: https://app.paykickstart.com/checkout/798?cc=1offsk
β Embed Forms
Add the following code line to the embed form code after the checkout URL and then paste the new embed form code on your web page.
?cc=COUPONCODE
Replace COUPONCODE with the actual coupon code for your product.
Ensure you include β after the coupon code, or the embed code will NOT work correctly.
Then paste the new embed code on your web page.
Example:
<iframe src=βhttps://app.paykickstart.com/checkout-embed/cf9test0da3f6c7e4722e913b72?cc=COUPONCODEβ width=β100%β scrolling=βnoβ frameborder=β0β³></iframe><script type=βtext/javascriptβ src=βhttps://app.paykickstart.com/checkout/embed_forms/iframe.jsβ></script>

β Pop-Up Widget
Insert the coupon code at the bottom of the widget embed code.
cc: βCouponCodeβ
Replace βCOUPONCODEβ with the actual coupon code for your product.
Then paste the new embed code on your web page.

Example:
<script type=βapplication/javascriptβ>
!function(a,b){var c=βPKWidgetScriptβ,d=document.getElementsByTagName(βheadβ)[0],e=document.createElement(βscriptβ);e.type=βtext/javascriptβ,e.src=a,e.id=c,document.getElementById(c)||d.appendChild(e),b()}
(βhttps://app.paykickstart.com/widgets/checkout/main.jsβ,function(){window.PKWidgetsData=window.PKWidgetsData||{},window.PKWidgetsData.hasOwnProperty(βcf94db48fb7aatest3f6c7e4722e913b72β)||(window.PKWidgetsData[βcf94db48fb7aa4teste4722e913b72β]={
host:βhttps://app.paykickstart.comβ,
fpd:β550β²,
custom_fields:{},
cc: βCouponCodeβ
})});
</script>
PLEASE NOTE:
Auto-applied coupon codes to Upsell offers will not discount products being used as 1-click upsell products in a funnel.
If you are looking into discounting upsell products purchased with 1-click, we recommend overriding the price of the product(s) within the specific funnel by using the Funnel Override feature:
https://support.paykickstart.com/articles/7525960-funnel-override-settings