Skip to content

ratneshsonar/woocommerce-auto-clear-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WooCommerce Auto Clear Cart

Automatically clears WooCommerce cart and session data at customizable intervals.

πŸ”§ Features

  • Auto-clears WooCommerce carts and sessions every:
    • 15 minutes
    • 30 minutes
    • 60 minutes
  • Admin settings page under WooCommerce β†’ Auto Clear Cart
  • Option to enable/disable the feature
  • Optional logging to a file in wp-content/uploads/auto-clear-cart-log.txt
  • Automatically deactivates if WooCommerce is not active

πŸ“ Installation

  1. Download the plugin ZIP file.
  2. Extract the ZIP file Rename the folder from woocommerce-auto-clear-cart-main to woocommerce-auto-clear-cart and ZIP the folder.
  3. Go to Plugins β†’ Add New in your WordPress dashboard.
  4. Click Upload Plugin and select the ZIP file.
  5. Install and activate the plugin.

βš™οΈ Settings

Navigate to WooCommerce β†’ Auto Clear Cart and configure:

  • Enable/disable cart clearing
  • Choose the clearing interval
  • Toggle logging

πŸ›‘οΈ Security & Best Practices

  • Input sanitization and output escaping implemented
  • Secure logging with writable check
  • Uses WordPress Settings API and WP-Cron
  • Follows WordPress coding standards

πŸ“¦ File Logging

If logging is enabled, logs are written to:

wp-content/uploads/auto-clear-cart-log.txt

🚫 Dependency Check

If WooCommerce is not installed or active, this plugin will:

  • Automatically deactivate itself
  • Display an admin notice

πŸ“ƒ License

This plugin is released under the GPLv2 license.


Developed with ❀️ for WooCommerce users

About

Github Repo for WooCommerce Auto Clear Cart plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages