|
/ Documentation /CartFlows/Integrations/ How to Enable/Add Coupons on the CartFlows Checkout page?

How to Enable/Add Coupons on the CartFlows Checkout page?

CartFlows makes it easy to allow your customers to apply discount coupons directly at checkout. You can control the visibility of the coupon field, and even customize the field and button text to better match your brand.

Step 1: Enable Coupons in WooCommerce

Before displaying coupons on your CartFlows checkout page, make sure coupons are enabled in WooCommerce:

  1. Navigate to WooCommerce > Settings > General.
  2. Check the option “Enable the use of coupon codes”.
  3. Create and configure your coupons under WooCommerce > Marketing > Coupons.

If you’re new to WooCommerce coupons, you can refer to this official WooCommerce guide for detailed steps.

Once your coupons are set up, the coupon field will automatically appear on your CartFlows checkout pages.

Step 2: Show or Hide the Coupon Field on a Specific Checkout Page

You can choose to enable or disable the coupon field for each individual checkout page.

Here’s how:

1: Go to CartFlows > Funnels > [Your Funnel Name]. If you’re using the Store Checkout, open the Store Checkout tab instead.

CartFlows Funnels List

2: Click on the Settings (cog icon) for the Checkout step.

CartFlows Checkout Settings

3: Navigate to the Checkout Form tab. Toggle the Enable Coupon Field option as needed.

CartFlows Enable Coupon Field

Step 3: Customize Coupon Field and Button Text (Optional)

Need to change the default placeholder or button label? CartFlows provides a developer-friendly filter to help you personalize the coupon field text.

Add the following code to your child theme’s functions.php file:

/**
* Change the CartFlows Coupon Field text and Button text.
*
* @param array $coupon_field array of field strings/texts.
* @return array
*/
add_filter( 'cartflows_coupon_field_options', 'change_cartFlows_coupon_field_strings', 10, 1 );

function change_cartFlows_coupon_field_strings( $coupon_field ){

$coupon_field = array(
'field_text' => __( 'Coupon Code', 'cartflows' ), // Coupon input field text/placeholder.
'button_text' => __( 'Apply', 'cartflows' ), // Apply coupon button text.
'class' => '', // Coupon input field class.
);

return $coupon_field; // Returning the modified data with new strings.
}

💡 Need help adding custom code to your site? Here’s a guide to walk you through the process safely.

With these settings in place, you’ll have full control over how coupons appear and function on your CartFlows checkout pages, improving the customer experience and supporting your promotional campaigns.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
OSZAR »