Auto-Check Terms and Conditions
Automatically checks the WooCommerce terms and conditions checkbox on checkout to reduce cart abandonment and missed submissions.
by Michael Patrick · github.com/michaelspatrick/auto-check-terms
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/michaelspatrick/auto-check-terms/archive/refs/heads/main.zipAuto-Check Terms and Conditions for WooCommerce
Automatically checks the "I have read and agree to the website terms and conditions" checkbox on the WooCommerce checkout page. Ensures smoother user experience and reduces missed submissions due to an unchecked box.
💡 Description
This lightweight WordPress plugin auto-checks the WooCommerce terms and conditions checkbox on the checkout page. It is especially helpful on sites with one-click checkout or users who may overlook the required checkbox.
✅ Features
- Automatically checks the WooCommerce terms checkbox
- Compatible with AJAX-loaded checkout forms
- Dispatches the
changeevent to trigger WooCommerce validation - No configuration required — install and activate
🚀 Installation
-
Upload the plugin to your WordPress site:
- Clone or download this repository into
/wp-content/plugins/auto-check-terms/ - Or upload the ZIP via WordPress Admin → Plugins → Add New → Upload Plugin
- Clone or download this repository into
-
Activate the plugin via the Plugins menu in WordPress.
-
Go to your WooCommerce checkout page and confirm the terms checkbox is auto-checked.
🔄 Compatibility
- WordPress 5.0+
- WooCommerce 4.0+
- PHP 7.4, 8.0, 8.1, 8.2, 8.3
🧑💻 Developer Notes
The plugin uses JavaScript injected via wp_footer with a MutationObserver to ensure the checkbox remains checked even after AJAX updates on the checkout page.
📜 License
This plugin is released under the GPLv2 or later.
🛠️ Author
Michael Patrick
Dragon Society International