Changeset 3486189
- Timestamp:
- 03/19/2026 07:35:18 AM (9 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cartflush-autoclear-cart-for-inactive-users/trunk/readme.txt
r3484396 r3486189 1 === CartFlush AutoClear Cart for Inactive Users === 1 Here’s a **WordPress.org–optimized version** of your README. This is cleaner, keyword-focused, and aligned with how plugins rank and convert on wp.org: 2 3 --- 4 5 ## === CartFlush – Auto Clear WooCommerce Cart for Inactive Users === 6 2 7 Contributors: wprashed 3 Tags: woocommerce , cart, abandoned cart, cart timeout, cart cleanup8 Tags: woocommerce cart cleanup, abandoned cart, cart timeout, woocommerce optimization, cart management 4 9 Requires at least: 5.8 5 10 Tested up to: 6.8 … … 7 12 Stable tag: 2.0.0 8 13 License: GPLv2 or later 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 Automatically clear inactive WooCommerce carts with flexible timeout rules, exclusions, and import/export tools. 12 13 == Description == 14 15 CartFlush helps store owners keep carts fresh by automatically clearing inactive WooCommerce carts after a configurable delay. Beyond a simple global timeout, the plugin also supports imported role-based rules, category-based rules, product exclusions, and settings migration between stores. 16 17 = Key Features = 18 19 * Set a default inactivity timeout in minutes 20 * Import role-based timeout rules from CSV 21 * Import category-based timeout rules from CSV 22 * Exclude specific product IDs or category slugs from auto-clear 23 * Export the full plugin configuration as JSON 24 * Import JSON settings on another site 25 * Clean uninstall that removes stored plugin options 26 * Translation-ready text domain and POT template 27 * Clean, modern WordPress admin screen 28 29 = Supported Import Formats = 14 License URI: [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html) 15 16 Automatically clear inactive WooCommerce carts with advanced timeout rules, exclusions, and import/export tools. 17 18 --- 19 20 ## == Description == 21 22 CartFlush helps you automatically clear inactive WooCommerce carts, keeping your store clean, fast, and optimized. 23 24 Instead of relying on a basic timeout, CartFlush gives you full control over how cart expiration works. You can define different timeout rules based on user roles, product categories, and exclusions—making it flexible enough for real-world eCommerce scenarios. 25 26 Whether you want faster cart turnover, better session management, or cleaner abandoned cart handling, CartFlush gives you the tools to do it properly. 27 28 --- 29 30 ## 🚀 Why Use CartFlush? 31 32 * Prevent stale and abandoned carts from piling up 33 * Improve WooCommerce session performance 34 * Apply smarter rules based on users and products 35 * Save time with import/export configuration tools 36 * Maintain clean and optimized cart behavior 37 38 --- 39 40 ## == Key Features == 41 42 ### ⏱ Default Cart Timeout 43 44 Set a global inactivity timeout (in minutes). If no other rules apply, this value determines when a cart is cleared. 45 46 --- 47 48 ### 👤 Role-Based Timeout Rules 49 50 Define custom cart expiration times based on user roles. 51 52 Examples: 53 54 * Customers → 30 minutes 55 * Subscribers → 60 minutes 56 * Wholesale users → 120 minutes 57 58 Perfect for stores with different user types and behaviors. 59 60 --- 61 62 ### 🛍 Category-Based Timeout Rules 63 64 Set cart timeout rules based on product categories. 65 66 Use cases: 67 68 * Flash sale items → shorter timeout 69 * Subscription products → shorter timeout 70 * High-value products → longer timeout 71 72 CartFlush checks all items in the cart and applies the most relevant rule. 73 74 --- 75 76 ### ⚡ Smart Timeout Logic 77 78 When multiple rules apply, CartFlush automatically selects the **shortest timeout**. 79 80 This ensures: 81 82 * Predictable behavior 83 * Better control over urgency 84 * No rule conflicts 85 86 --- 87 88 ### 🚫 Product Exclusions 89 90 Exclude specific products from cart clearing. 91 92 If a cart contains an excluded product: 93 → The cart will NOT be cleared. 94 95 --- 96 97 ### 📂 Category Exclusions 98 99 Exclude entire categories from auto-clear. 100 101 If any product in the cart belongs to an excluded category: 102 → Cart clearing is skipped. 103 104 --- 105 106 ### 📥 CSV Import for Rules 107 108 Bulk import rules using CSV. 109 110 Supported types: 111 112 * role 113 * category 114 * excluded_product 115 * excluded_category 116 117 Quickly configure large stores without manual setup. 118 119 --- 120 121 ### 📤 JSON Export (Full Backup) 122 123 Export all settings into a JSON file. 124 125 Includes: 126 127 * Default timeout 128 * Role rules 129 * Category rules 130 * Exclusions 131 132 Perfect for backups and migrations. 133 134 --- 135 136 ### 🔁 JSON Import (Quick Setup) 137 138 Import settings instantly on another site. 139 140 Ideal for: 141 142 * Agencies 143 * Multi-store setups 144 * Staging → production deployment 145 146 --- 147 148 ### 👥 Works for Guests & Logged-in Users 149 150 CartFlush uses WooCommerce sessions, so it works for: 151 152 * Guest users 153 * Logged-in customers 154 155 No additional configuration required. 156 157 --- 158 159 ### 🎯 Lightweight & Efficient 160 161 No unnecessary overhead. The plugin focuses only on: 162 163 * Tracking inactivity 164 * Applying rules 165 * Clearing carts 166 167 --- 168 169 ### 🌍 Translation Ready 170 171 Includes text domain and POT file for easy localization. 172 173 --- 174 175 ### 🧹 Clean Uninstall 176 177 When the plugin is deleted: 178 179 * All data and settings are removed automatically 180 181 --- 182 183 ## == How It Works == 184 185 1. Customer adds items to cart 186 2. Inactivity timer starts 187 3. Plugin checks: 188 189 * Default timeout 190 * User role rules 191 * Product category rules 192 4. Shortest valid timeout is applied 193 5. If excluded items exist → skip clearing 194 6. Cart is cleared after timeout 195 196 --- 197 198 ## == Supported Import Formats == 30 199 31 200 CSV headers: … … 33 202 `type,key,timeout_minutes` 34 203 35 Supported CSVtypes:36 37 * `role`38 * `category`39 * `excluded_product`40 * `excluded_category`41 42 Example CSV rows:204 ### Supported types: 205 206 * role 207 * category 208 * excluded_product 209 * excluded_category 210 211 ### Example: 43 212 44 213 `role,customer,30` … … 47 216 `excluded_category,high-ticket,` 48 217 49 JSON exports include: 50 51 * Default timeout 52 * Imported role rules 53 * Imported category rules 54 * Excluded products 55 * Excluded categories 56 57 == Installation == 58 59 1. Upload the plugin folder to `/wp-content/plugins/cartflush-autoclear-cart-for-inactive-users/`. 60 2. Activate the plugin through the WordPress Plugins screen. 61 3. Make sure WooCommerce is active. 62 4. Go to `Settings > CartFlush`. 63 5. Save your default timeout or import rule files as needed. 64 65 == Frequently Asked Questions == 66 67 = Does this work for guest users and logged-in users? = 68 69 Yes. CartFlush uses the WooCommerce session, so it can track inactivity for both guest and logged-in shoppers. 70 71 = How is the final timeout chosen? = 72 73 The plugin starts with the default timeout, then checks imported role rules and product category rules in the current cart. If more than one applies, the shortest valid timeout is used. 74 75 = What happens when a cart contains an excluded product or category? = 76 77 CartFlush skips auto-clearing for that cart. 78 79 = Can I move my settings between sites? = 80 81 Yes. Export the current configuration as JSON and import it on another site running CartFlush. 82 83 = Does uninstall remove plugin data? = 84 85 Yes. When the plugin is uninstalled from WordPress, CartFlush removes its saved timeout and imported rule options. 86 87 == Screenshots == 88 89 1. Modern CartFlush settings screen with timeout controls and import/export actions 90 2. CSV and JSON import tools for moving rules between stores 91 3. Imported configuration summary showing active rules and exclusions 92 93 == Changelog == 218 --- 219 220 ## == Frequently Asked Questions == 221 222 ### Does this work for guest users and logged-in users? 223 224 Yes. CartFlush uses WooCommerce sessions, so both are supported. 225 226 --- 227 228 ### How is the timeout calculated? 229 230 The plugin starts with the default timeout, then checks role and category rules. The shortest valid timeout is applied. 231 232 --- 233 234 ### What if a cart contains excluded items? 235 236 CartFlush will skip clearing the cart entirely. 237 238 --- 239 240 ### Can I migrate settings between sites? 241 242 Yes. Export settings as JSON and import them on another site. 243 244 --- 245 246 ### Does uninstall remove all data? 247 248 Yes. All plugin options are deleted during uninstall. 249 250 --- 251 252 ## == Screenshots == 253 254 1. Clean and modern CartFlush settings panel 255 2. CSV import interface for rules 256 3. JSON export/import tools 257 4. Active rules and exclusions overview 258 259 --- 260 261 ## == Changelog == 94 262 95 263 = 2.0.0 = 96 264 97 * Added uninstall cleanup for plugin options. 98 * Added localization scaffolding and a starter POT file. 99 * Refactored the plugin into a multi-file WordPress-friendly structure. 100 * Added a polished admin interface with card-based layout and custom styling. 101 * Refreshed plugin metadata and documentation for WordPress.org distribution. 102 * Added README.md for repository hosting and project overview. 103 * Added JSON import/export for CartFlush settings. 104 * Added CSV import for role rules, category rules, and exclusion lists. 105 * Added support for excluded products and excluded categories. 106 * Added dynamic timeout matching based on user roles and cart categories. 265 * Added JSON import/export system 266 * Added CSV rule import support 267 * Added role-based timeout rules 268 * Added category-based timeout rules 269 * Added product and category exclusions 270 * Improved admin UI with modern layout 271 * Added uninstall cleanup 272 * Added localization support 273 * Refactored plugin structure 107 274 108 275 = 1.0.0 = 109 276 110 * Initial release .277 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.