• Home
    • Free web tools
    • Web hosting
      • Cloudways
      • Common htaccess Rules
      • Getting Started with Linux Commands
      • Google Workspace email
      • How to move a site from one cPanel host to another
      • How to transfer email accounts and messages between cPanel servers
      • iPhone email config
      • Launch and configure a WordPress instance with Amazon Lightsail
      • Microsoft 365
      • Mxtoolbox
      • Protecting your email from sending spam
      • Thunderbird, IMAP, Expunge or How to Really Delete Emails from the Server
      • Use Google Mail Fetcher to receive mails from your server
      • Zoho
    • Windows
      • Adventure Games
      • Buying a hard drive
      • Buying RAM Memory
      • Optimize Windows 10 for better performance
      • Keyboard shortcuts
      • Windows 7 Troubleshooting
      • What to back-up before formating
    • Design
      • Corel Draw Tips and Tricks
      • PhotoShop Tips and Tricks
      • Websites for inspiration
      • Navigation Design Patterns
      • ACDSee Tips and Tricks
  • HTML & CSS
    • How to export a google spreadsheet to a clean HTML table
    • Visual studio Code
    • HTML
      • Essential checks before launching a website
    • CSS
      • CSS Coding Standards
      • How to Center Anything With CSS
      • Basic CSS Syntax
      • Building a Basic CSS Layout
      • CSS Classes and IDs
      • Inheritance
      • CSS Positioning
      • Margins, padding and borders
      • Lines
      • Forms
      • Tables
      • Fonts
      • CSS Font-Size
      • CSS Sprites
      • CSS3 Transitions
      • Gradients
      • Drop Shadows
      • Responsive Design with CSS Media Queries
      • Cross Browser CSS
      • Firebug
      • CSS tools
      • Modernizr
      • CSS Lists
      • CSS Anchors, Links and Pseudo Classes
      • What is !important
      • What is -webkit or -moz?
      • CSS Reset
      • Print friendly websites
      • CSS Troubleshooting
      • Learning Resources
    • Facebook
      • Facebook ads
      • Woobox
        • Woobox polls
        • Woobox sweepstakes
    • NetBeans
      • Emmet plugin for Netbeans
      • NetBeans features
      • NetBeans Keyboard Shortcuts
      • NetBeans Snippets
      • Git versioning for your NetBeans projects
    • Newsletter
      • Creating a custom email template with mailchimp
      • HTML Emails
      • Learning Resources
      • Using mailChimp
      • Creating a campaign
      • Creating a subscriber list
  • JavaScript & AJAX
    • 3D Applications with HTML5 and WebGL
    • Javascript
      • HTML5 Custom Data Attributes (data-*)
      • Passing data from PHP to JavaScript
      • Regular Expressions
      • Running a JavaScript Program
      • Basic Javascript Syntax
      • Learning Resources
    • jQuery
      • Basic jQuery Syntax
      • jQuery selectors
      • CSS jQuery methods
      • Show, hide and toggle
      • jQuery events
      • Useful snippets
      • jQuery Plugins
        • GSAP
        • Isotope
        • jQuery inline form validation plugin
        • Horizontal thumb scrolling
        • Galleria
      • jQuery optimization
    • Ajax
      • Ajax Plugins
  • PHP
    • PHP
      • PHP Snippets
      • Basic PHP Syntax
      • Loops
      • Using Constants
      • Functions
      • Using Arrays
      • Single Quotes vs Double Quotes
      • Strings in Php
      • Moving Information from Page to Page
      • Files and Directories
      • Using external files
      • Creating a configuration file
      • Parsing HTML with the Simple HTML DOM Library
      • Displaying Errors
      • Writing Secure PHP
      • Parsing XML With The DOM Library
      • Learning Resources
    • MYSQL DATABASE
      • MySQL Tables
      • Relational Databases
      • Backup
      • Useful Queries
      • Full-Text Search
      • phpMyAdmin
    • WAMPSERVER
      • How to Enable HTTPS / SSL on WAMP Server
      • How to import a large database in Wamp
      • How to install Wamp server
      • Sending test emails with WampServer
      • Speed up page loading time on localhost
      • Wamp Server + Dropbox (Sync PHP file and MySQL Database)
      • Wamp troubleshooting
  • WordPress
    • How to Create a Christmas Snow Effect in Elementor
    • How to host Google Fonts locally in your WordPress site
    • How To Prevent Your WordPress Site From Being Hacked Guide (2020)
    • Validating and making accessible a wordpress site
    • WordPress Data Sanitization and Validation
    • WordPress free SSL with cloudfare
    • WordPress installation
    • Anatomy of a WordPress Theme
    • Customizing WordPress
      • Custom Post Types
      • Customizing a WordPress Theme
      • Basic WordPress functions
      • WordPress Snippets
      • The WordPress Loop
      • How to Add Additional Fields to the WordPress Media Uploader
      • How to write a WordPress Plugin
        • How to ensure that your plugin follows envato guidelines
        • How to optimize a plugin
        • How to Translate a WordPress Plugin
      • WordPress Ajax
      • Creating Custom Page Templates
      • Including JavaScript and CSS
      • Adding a WordPress 3.0 menu to your theme
      • Customize the WordPress Admin Area
      • Create a Settings Page For Your WordPress Theme
      • Customizing And Styling The Password Protected Form
      • How to Style WordPress Navigation Menus
    • WordPress Hooks
    • WordPress essential plugins
      • CMB2
      • Elementor
      • Gravity Forms
        • Accepting PayPal Payments in Your WordPress Forms
        • Gravity Forms API Functions
        • How to add reCAPTCHA to your gravity forms
        • Protecting you Gravity Forms upload files
        • User registration using Gravity Forms
      • Migrate from live test site to live with Migrate Guru
      • Poll plugins comparison
      • Quiz plugins comparison
      • Redux Framework Fields
      • Redux troubleshooting
      • Revolution Slider
      • Ultimate GDPR & CCPA Compliance Toolkit for WordPress
      • Using the Output Argument
      • WordPress SEO by Yoast
      • WPML / The WordPress Multilingual Plugin
      • Advanced Custom Fields
      • Adminimize
      • Moving WordPress From Your Localhost To A Live Web Server using WP Sync DB
    • WordPress Shortcodes
    • WordPress Multisite
    • WordPress Speed Optimization Guide (2022)
      • Debugging WordPress
      • How to optimize a WordPress query to get results faster
    • Troubleshooting
      • How to import big WordPress mysql database with bigdump
      • My WordPress site gets blocked in China
      • How to fix a missing parent theme error
      • Converting your database to UTF8
      • Overcome DNS Propagation Time with Hosts File Hacks
      • How to Increase the Maximum File Upload Size in WordPress
    • Essential checks before going online
    • How to Add Google AdSense to Your WordPress Site
    • Other CMSs
      • Magento
        • How to move your magento site to localhost
        • Magento FAQ
      • PrestaShop
        • How to block spam emails in PrestaShop
        • How to install Presta on localhost
        • How to upgrade presta
        • Presta debugging
        • Presta SEO optimization
      • Shopify
        • Shopify Speed Optimization Guide
      • Joomla
        • What is Joomla?
        • Installation
        • How to transfer Joomla from online server to local server
        • Moving a Joomla Site from Local to Live Server
        • Joomla essential plugins
        • Troubleshooting
        • Upgrading Joomla
        • Cleaning up an infected Joomla web site
        • Styles
        • Contacts
        • User
        • Editors
        • Installing a component
        • Removing font size
        • Administrator Components
        • Articles Category Module
        • WYSIWYG Editors
        • How to find your module positions
        • Controlling Modules Using MetaMod
        • Automatically generated menu module from article’s category
        • Making Joomla URLs Search Engine Friendly (SEF)
        • Using Firebug With Your Joomla Website
        • Remove “Joomla SEF URLs by Artio” link in JoomSEF 4.1.0
        • Article Checkin and locked content
        • When Joomla times out
        • Create a sitemap using Xmap
        • Learning Resources
      • LimeSurvey
        • Limesurvey and WordPress
        • LimeSurvey installation
        • Creating a new survey
        • Changing an active survey
        • Troubleshooting
  • WooCommerce
    • Create a facebook product catalogue using WooCommerce
    • Essential checks before going online
    • How to Create a WooCommerce Wholesale System
    • How to create a WooCommerce XML feed for shopflix
    • How to Install the Facebook Pixel in WordPress
    • Setting Minimum Checkout Requirements in WooCommerce
    • WooCommerce and the GDPR
    • WooCommerce FAQ
    • WooCommerce Payment Gateways
      • How to add VivaPayments in WooCommerce
      • WooCommerce & Piraeus Bank
      • WooCommerce and NBG Simplify
      • WooCommerce and PayPal
      • WooCommerce and Square
      • WooCommerce JCC
    • How to add a custom field to WooCommerce Product Category Page
    • WooCommerce conditional tags
    • WooCommerce DataBase
    • WooCommerce shortcodes
    • How to Override WooCommerce Template Files
    • How to override WooCommerce Frontend Scripts
    • Customizing checkout fields using actions and filters
    • New e-shop questionnaire
    • Translating WooCommerce (Localization)
    • WooCommerce Custom Fields for Variations
    • WooCommerce functions
    • WooCommerce snippets
      • How to edit WooCommerce product data tabs with PHP
    • WooCommerce Hooks
    • WooCommerce Notices
    • WooCommerce and SSL
    • WooCommerce free essential plugins
      • WooCommerce Poor Guys Swiss Knife
      • WP All Import
    • WooCommerce paid essential plugins
      • WooCommerce and WPML
    • WooCommerce Troubleshooting
      • How to fix E-Mail problems in WordPress and WooCommerce
  • SEO
    • Google Products
      • Double Click for Publishers (DFP)
      • Google AdSense
      • Google AdWords
        • How to add adwords conversion tag in WordPress
        • Practice tips and tricks or usual mistakes
        • Quality Score
        • Setting bids and budgets
        • Building an AdWords campaign
        • Finding the right keywords
        • Keyword Match Types
        • Using promotional codes (coupons)
        • Google Adwords certification
      • Google Analytics
        • Custom dashboards
        • Google Analytics usual scenarios
        • Properties and views in Analytics
        • Bounce rate
        • Site Search
        • Google Analytics Certification (IQ) exam
          • Google Analytics IQ Exam Questions & Answers Practice Test
            • Accounts, Views & Filters
            • Analytics Tracking Code
            • Attribution Modelling
            • Campaign Tracking
            • Channels, Sources & Mediums
            • Customer Journey
            • eCommerce & Conversions
            • Events
            • External Data
            • General Knowledge
            • Goals
            • Google AdWords
            • Metrics & Dimensions
            • Mobile apps
            • Reports
            • Segmentation
      • Google Drive
        • Google Script Editor Shortcodes
      • Google maps
        • How to create a Google Map API Key
      • Google Merchant Account
      • Google My Business Optimizations to Rank Higher in Local Search
      • Google Webmaster Tools
    • Learning Resources
    • Website Redesign
    • WordPress SEO Optimization Guide (2021)
    • YouTube SEO
    • Choosing the domain name
    • Selecting the page title
    • Description meta tag
    • Google SERP Snippet Optimization Tool
    • Writing Content
    • Internal links
    • URL Canonicalization: redirect non-www to www urls
    • Page Rank
    • Find out when your site was last crawled by Google
  • HOME
    • Free web tools
    • Web hosting
      • Cloudways
      • Common htaccess Rules
      • Getting Started with Linux Commands
      • Google Workspace email
      • How to move a site from one cPanel host to another
      • How to transfer email accounts and messages between cPanel servers
      • iPhone email config
      • Launch and configure a WordPress instance with Amazon Lightsail
      • Microsoft 365
      • Mxtoolbox
      • Protecting your email from sending spam
      • Thunderbird, IMAP, Expunge or How to Really Delete Emails from the Server
      • Use Google Mail Fetcher to receive mails from your server
      • Zoho
    • Windows
      • Adventure Games
      • Buying a hard drive
      • Buying RAM Memory
      • Optimize Windows 10 for better performance
      • Keyboard shortcuts
      • Windows 7 Troubleshooting
      • What to back-up before formating
    • Design
      • Corel Draw Tips and Tricks
      • PhotoShop Tips and Tricks
      • Websites for inspiration
      • Navigation Design Patterns
      • ACDSee Tips and Tricks
  • HTML & CSS
    • How to export a google spreadsheet to a clean HTML table
    • Visual studio Code
    • HTML
      • Essential checks before launching a website
    • CSS
      • CSS Coding Standards
      • How to Center Anything With CSS
      • Basic CSS Syntax
      • Building a Basic CSS Layout
      • CSS Classes and IDs
      • Inheritance
      • CSS Positioning
      • Margins, padding and borders
      • Lines
      • Forms
      • Tables
      • Fonts
      • CSS Font-Size
      • CSS Sprites
      • CSS3 Transitions
      • Gradients
      • Drop Shadows
      • Responsive Design with CSS Media Queries
      • Cross Browser CSS
      • Firebug
      • CSS tools
      • Modernizr
      • CSS Lists
      • CSS Anchors, Links and Pseudo Classes
      • What is !important
      • What is -webkit or -moz?
      • CSS Reset
      • Print friendly websites
      • CSS Troubleshooting
      • Learning Resources
    • Facebook
      • Facebook ads
      • Woobox
        • Woobox polls
        • Woobox sweepstakes
    • NetBeans
      • Emmet plugin for Netbeans
      • NetBeans features
      • NetBeans Keyboard Shortcuts
      • NetBeans Snippets
      • Git versioning for your NetBeans projects
    • Newsletter
      • Creating a custom email template with mailchimp
      • HTML Emails
      • Learning Resources
      • Using mailChimp
      • Creating a campaign
      • Creating a subscriber list
  • JAVASCRIPT & AJAX
    • 3D Applications with HTML5 and WebGL
    • Javascript
      • HTML5 Custom Data Attributes (data-*)
      • Passing data from PHP to JavaScript
      • Regular Expressions
      • Running a JavaScript Program
      • Basic Javascript Syntax
      • Learning Resources
    • jQuery
      • Basic jQuery Syntax
      • jQuery selectors
      • CSS jQuery methods
      • Show, hide and toggle
      • jQuery events
      • Useful snippets
      • jQuery Plugins
        • GSAP
        • Isotope
        • jQuery inline form validation plugin
        • Horizontal thumb scrolling
        • Galleria
      • jQuery optimization
    • Ajax
      • Ajax Plugins
  • PHP
    • PHP
      • PHP Snippets
      • Basic PHP Syntax
      • Loops
      • Using Constants
      • Functions
      • Using Arrays
      • Single Quotes vs Double Quotes
      • Strings in Php
      • Moving Information from Page to Page
      • Files and Directories
      • Using external files
      • Creating a configuration file
      • Parsing HTML with the Simple HTML DOM Library
      • Displaying Errors
      • Writing Secure PHP
      • Parsing XML With The DOM Library
      • Learning Resources
    • MYSQL DATABASE
      • MySQL Tables
      • Relational Databases
      • Backup
      • Useful Queries
      • Full-Text Search
      • phpMyAdmin
    • WAMPSERVER
      • How to Enable HTTPS / SSL on WAMP Server
      • How to import a large database in Wamp
      • How to install Wamp server
      • Sending test emails with WampServer
      • Speed up page loading time on localhost
      • Wamp Server + Dropbox (Sync PHP file and MySQL Database)
      • Wamp troubleshooting
  • WORDPRESS
    • How to Create a Christmas Snow Effect in Elementor
    • How to host Google Fonts locally in your WordPress site
    • How To Prevent Your WordPress Site From Being Hacked Guide (2020)
    • Validating and making accessible a wordpress site
    • WordPress Data Sanitization and Validation
    • WordPress free SSL with cloudfare
    • WordPress installation
    • Anatomy of a WordPress Theme
    • Customizing WordPress
      • Custom Post Types
      • Customizing a WordPress Theme
      • Basic WordPress functions
      • WordPress Snippets
      • The WordPress Loop
      • How to Add Additional Fields to the WordPress Media Uploader
      • How to write a WordPress Plugin
        • How to ensure that your plugin follows envato guidelines
        • How to optimize a plugin
        • How to Translate a WordPress Plugin
      • WordPress Ajax
      • Creating Custom Page Templates
      • Including JavaScript and CSS
      • Adding a WordPress 3.0 menu to your theme
      • Customize the WordPress Admin Area
      • Create a Settings Page For Your WordPress Theme
      • Customizing And Styling The Password Protected Form
      • How to Style WordPress Navigation Menus
    • WordPress Hooks
    • WordPress essential plugins
      • CMB2
      • Elementor
      • Gravity Forms
        • Accepting PayPal Payments in Your WordPress Forms
        • Gravity Forms API Functions
        • How to add reCAPTCHA to your gravity forms
        • Protecting you Gravity Forms upload files
        • User registration using Gravity Forms
      • Migrate from live test site to live with Migrate Guru
      • Poll plugins comparison
      • Quiz plugins comparison
      • Redux Framework Fields
      • Redux troubleshooting
      • Revolution Slider
      • Ultimate GDPR & CCPA Compliance Toolkit for WordPress
      • Using the Output Argument
      • WordPress SEO by Yoast
      • WPML / The WordPress Multilingual Plugin
      • Advanced Custom Fields
      • Adminimize
      • Moving WordPress From Your Localhost To A Live Web Server using WP Sync DB
    • WordPress Shortcodes
    • WordPress Multisite
    • WordPress Speed Optimization Guide (2022)
      • Debugging WordPress
      • How to optimize a WordPress query to get results faster
    • Troubleshooting
      • How to import big WordPress mysql database with bigdump
      • My WordPress site gets blocked in China
      • How to fix a missing parent theme error
      • Converting your database to UTF8
      • Overcome DNS Propagation Time with Hosts File Hacks
      • How to Increase the Maximum File Upload Size in WordPress
    • Essential checks before going online
    • How to Add Google AdSense to Your WordPress Site
    • Other CMSs
      • Magento
        • How to move your magento site to localhost
        • Magento FAQ
      • PrestaShop
        • How to block spam emails in PrestaShop
        • How to install Presta on localhost
        • How to upgrade presta
        • Presta debugging
        • Presta SEO optimization
      • Shopify
        • Shopify Speed Optimization Guide
      • Joomla
        • What is Joomla?
        • Installation
        • How to transfer Joomla from online server to local server
        • Moving a Joomla Site from Local to Live Server
        • Joomla essential plugins
        • Troubleshooting
        • Upgrading Joomla
        • Cleaning up an infected Joomla web site
        • Styles
        • Contacts
        • User
        • Editors
        • Installing a component
        • Removing font size
        • Administrator Components
        • Articles Category Module
        • WYSIWYG Editors
        • How to find your module positions
        • Controlling Modules Using MetaMod
        • Automatically generated menu module from article’s category
        • Making Joomla URLs Search Engine Friendly (SEF)
        • Using Firebug With Your Joomla Website
        • Remove “Joomla SEF URLs by Artio” link in JoomSEF 4.1.0
        • Article Checkin and locked content
        • When Joomla times out
        • Create a sitemap using Xmap
        • Learning Resources
      • LimeSurvey
        • Limesurvey and WordPress
        • LimeSurvey installation
        • Creating a new survey
        • Changing an active survey
        • Troubleshooting
  • WOOCOMMERCE
    • Create a facebook product catalogue using WooCommerce
    • Essential checks before going online
    • How to Create a WooCommerce Wholesale System
    • How to create a WooCommerce XML feed for shopflix
    • How to Install the Facebook Pixel in WordPress
    • Setting Minimum Checkout Requirements in WooCommerce
    • WooCommerce and the GDPR
    • WooCommerce FAQ
    • WooCommerce Payment Gateways
      • How to add VivaPayments in WooCommerce
      • WooCommerce & Piraeus Bank
      • WooCommerce and NBG Simplify
      • WooCommerce and PayPal
      • WooCommerce and Square
      • WooCommerce JCC
    • How to add a custom field to WooCommerce Product Category Page
    • WooCommerce conditional tags
    • WooCommerce DataBase
    • WooCommerce shortcodes
    • How to Override WooCommerce Template Files
    • How to override WooCommerce Frontend Scripts
    • Customizing checkout fields using actions and filters
    • New e-shop questionnaire
    • Translating WooCommerce (Localization)
    • WooCommerce Custom Fields for Variations
    • WooCommerce functions
    • WooCommerce snippets
      • How to edit WooCommerce product data tabs with PHP
    • WooCommerce Hooks
    • WooCommerce Notices
    • WooCommerce and SSL
    • WooCommerce free essential plugins
      • WooCommerce Poor Guys Swiss Knife
      • WP All Import
    • WooCommerce paid essential plugins
      • WooCommerce and WPML
    • WooCommerce Troubleshooting
      • How to fix E-Mail problems in WordPress and WooCommerce
  • SEO
    • Google Products
      • Double Click for Publishers (DFP)
      • Google AdSense
      • Google AdWords
        • How to add adwords conversion tag in WordPress
        • Practice tips and tricks or usual mistakes
        • Quality Score
        • Setting bids and budgets
        • Building an AdWords campaign
        • Finding the right keywords
        • Keyword Match Types
        • Using promotional codes (coupons)
        • Google Adwords certification
      • Google Analytics
        • Custom dashboards
        • Google Analytics usual scenarios
        • Properties and views in Analytics
        • Bounce rate
        • Site Search
        • Google Analytics Certification (IQ) exam
          • Google Analytics IQ Exam Questions & Answers Practice Test
            • Accounts, Views & Filters
            • Analytics Tracking Code
            • Attribution Modelling
            • Campaign Tracking
            • Channels, Sources & Mediums
            • Customer Journey
            • eCommerce & Conversions
            • Events
            • External Data
            • General Knowledge
            • Goals
            • Google AdWords
            • Metrics & Dimensions
            • Mobile apps
            • Reports
            • Segmentation
      • Google Drive
        • Google Script Editor Shortcodes
      • Google maps
        • How to create a Google Map API Key
      • Google Merchant Account
      • Google My Business Optimizations to Rank Higher in Local Search
      • Google Webmaster Tools
    • Learning Resources
    • Website Redesign
    • WordPress SEO Optimization Guide (2021)
    • YouTube SEO
    • Choosing the domain name
    • Selecting the page title
    • Description meta tag
    • Google SERP Snippet Optimization Tool
    • Writing Content
    • Internal links
    • URL Canonicalization: redirect non-www to www urls
    • Page Rank
    • Find out when your site was last crawled by Google

Setting Minimum Checkout Requirements in WooCommerce

We are going to be using the woocommerce_check_cart_items action provided by WooCommerce to run our functions and execute our code.

How to Create
a WooCommerce
Wholesale System
  • How to create a WooCommerce XML feed for shopflix
  • WooCommerce FAQ
  • Setting Minimum Checkout Requirements in WooCommerce
  • How to Create a WooCommerce Wholesale System
  • Essential checks before going online
  • WooCommerce and the GDPR
  • How to Install the Facebook Pixel in WordPress
  • Create a facebook product catalogue using WooCommerce
  • WooCommerce Payment Gateways
  • How to add a custom field to WooCommerce Product Category Page
  • WooCommerce conditional tags
  • WooCommerce DataBase
  • WooCommerce shortcodes
  • How to Override WooCommerce Template Files
  • How to override WooCommerce Frontend Scripts
  • Customizing checkout fields using actions and filters
  • New e-shop questionnaire
  • Translating WooCommerce (Localization)
  • WooCommerce Custom Fields for Variations
  • WooCommerce functions
  • WooCommerce snippets
  • WooCommerce Hooks
  • WooCommerce Notices
  • WooCommerce and SSL
  • WooCommerce free essential plugins
  • WooCommerce paid essential plugins
  • WooCommerce Troubleshooting