- Hiding Fields on the Checkout Page
- Installing WooCommerce
- Using WooCommerce
- Adding Products in WooCommerce
- Using Your Theme's Header & Footer in a Step
- Embedding a Checkout Form on the Checkout Page
- Hiding WooCommerce Pages and Products
- Using Pricing Tables
- Adding an Affiliate Program
- Setting a Funnel as the Homepage
- Dynamic Offers aka Rule Engine
- Instant Layout for Checkout and Thank You Step
- Adding Products from the URL to the Checkout Page
- Deleting Plugin Data During Uninstallation
- Importing Ready-Made Templates for Funnels and Steps
- Importing and Exporting Funnels and Step
- URL Parameters
- Replacing the Main Checkout Order with an Upsell or Downsell
- Rolling back to a Previous Version
- Using the "Order Custom Field" Rule of Dynamic Offers with Custom Field Editor
- Google Address Autocomplete
- Flatsome UX Builder
- ActiveCampaign
- Paypal Reference Transactions
- How PaypPal/Stripe Works
- Enabling Enfold Avia Layout Builder
- Setting Up Authorize.net for Upsell & Downsell
- Supported Payment Gateways
- Setting Quantity and Discount for Products on the Checkout Page
- Adding Custom Payment Gateway Support for One-Click Upsell and Downsell
- Funnel in Test Mode
- Troubleshooting Plugin and Theme Conflicts
- Resolving the "Please Select a Simple, Virtual, and Free Product" Error
- Fixing Endless Loading on the Checkout Page
- Fixing the "We can't seem to find an order for you." Error on the Thank You Page
- Troubleshooting License Activation Issues
- Fixing the "Checkout ID Not Found" Error
- Fixing the "Session Expired" Error Message
- Resolving "Order Does Not Exist" Error on Upsell/Downsell Page
- Fixing the "Sorry, This Product Cannot Be Purchased" Error
- Disabling Auto-fill of Address Fields Based on Zip Code
- Enabling Theme's Scripts & Styles Without Changing Page Template
- Disabling Auto-fill of Checkout Fields
- Allowing Cache Plugins to Cache CartFlows Pages
- Changing the "Choose a Variation" Text
- VAT Field Not Displaying for WooCommerce EU/UK VAT Compliance Plugin
- Enabling the Product Tab on Store Checkout
- Displaying the Order Summary Open on Mobile Devices
- Refreshing the Checkout Page After CartFlows AJAX Calls
- Overview
- Installing Modern Cart Starter
- Installing Modern Cart Pro
- Activating License Key
- Customizing General Settings
- Customizing Cart Tray Labels
- Customizing Cart Icon Settings
- Customizing Cart Tray Styling
- Understanding the Product Recommendations Feature
- Controlling Product Recommendation Source for Empty Cart
How and Where to Add Custom JS, CSS, and PHP Codes
You may sometimes need to add custom JavaScript, CSS, or PHP code to your site for custom functionality or styling. This guide shows the safest place to add each type of code, from every CartFlows page down to a single step.
Choose Where to Add Your Code
Pick the place that matches where you want the code to run:
- All CartFlows pages — CartFlows → Settings → Global CSS & Scripts.
- One funnel — the funnel’s Funnel Settings → General.
- One step — the step’s Settings → General.
- Your whole website — a code snippets plugin, or Appearance → Customize → Additional CSS for CSS.
CartFlows loads its code in this order: global first, then funnel, then step. When two rules style the same element, the step’s rule wins, so you can set a shared style globally and fine-tune it on a single step.
Add CSS or JavaScript to All CartFlows Pages
Use Global CSS & Scripts for code that should run on every funnel step, such as brand fonts, button styles, or a script every funnel needs.
Step 1. From your WordPress dashboard, go to CartFlows → Settings.
Step 2. Click Global CSS & Scripts under Utilities in the left menu.
Step 3. Add your code:
- Global JavaScript — JavaScript that runs on every CartFlows page.
- Global CSS — CSS that applies to every CartFlows page.
Paste the code on its own. CartFlows adds the script and style tags for you.

Step 4. Click Save Settings.
Your code now loads on every CartFlows funnel step, including your Store Checkout.
Add CSS or JavaScript to One Funnel
Use this for code that only one funnel needs, such as styles for a seasonal sale funnel.
Step 1. Go to CartFlows → Funnels and open the funnel.
Step 2. Click the Funnel Settings (gear) icon at the top right, then click General.
Step 3. Add your code to Funnel Custom JavaScript or Funnel Custom CSS.

Step 4. Click Save Settings. The code applies to every step in that funnel.
Add CSS or JavaScript to One Step
Use this for code that only one page needs, such as a tweak to a single checkout or thank you page.
Step 1. Open the funnel and click the Settings (gear) icon on the step you want to change.
Step 2. Click General in the left menu.
Step 3. Add your code to Custom JavaScript or Custom CSS.

Step 4. Click Save Settings. The code applies to that step only.
Add Code to Your Whole Website
Use a Plugin
For code that should run across your whole site, not just CartFlows pages, a code snippets plugin is the simplest and safest option. It works for JavaScript, CSS, and PHP, and your snippets stay active after theme updates.
We recommend:
Add CSS with the Customizer
To add site-wide CSS without a plugin, go to Appearance → Customize → Additional CSS.

Add Custom PHP
Use a Child Theme
Add your PHP code inside the functions.php file of your child theme. You can open it from Appearance → Theme File Editor in your WordPress dashboard (on some themes, it’s under Tools → Theme File Editor). A code snippets plugin from the list above works for PHP too.

Using a child theme keeps your custom code safe when you update the theme. If you’re not familiar with child themes, see this guide to creating a WordPress child theme.
Frequently Asked Questions
We don't respond to the article feedback, we use it to improve our support content.