Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/dev-sandeep-ghosh/wisetr-woocommerce-demo/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A robust WooCommerce plugin that enhances the checkout experience with conditional fees, dynamic discounts, and interaction analytics.
Features
- Settings Page: Dedicated dashboard to configure conditional fee amount, target country, and cart total threshold.
- Conditional Checkout Fee: Dynamically applied based on admin settings (e.g., $25 if cart < $500, US country, and subscription exists).
- Product-specific Dynamic Pricing:
- Enable/disable sliding discounts per product.
- Set custom "Base Discount %" for specific products.
- Graphical Analytics Dashboard:
- High-level visualization using Chart.js.
- Tracks page visits, field interactions, and order submissions.
- Performance Focused:
- Data collected in session and saved via background job (
wp_schedule_single_event).
- Data collected in session and saved via background job (
- Production Ready:
- Fully compatible with WordPress Multisite.
- Ready for WPML translation with consistent text domains.
Installation
- Upload the
smart-checkout-enhancerfolder to/wp-content/plugins/. - Activate the plugin through the 'Plugins' menu.
- Multisite: Can be Network Activated or activated per-site.
Configuration
- Go to Smart Checkout > Settings to configure fees and thresholds.
- Go to Smart Checkout > Analytics to view interaction charts.
- On individual product pages (General tab), toggle "Enable Sliding Discount" and set a "Base Discount %".
Technical Decisions
- Manager Pattern: Business logic for Fees, Pricing, and Analytics is encapsulated.
- Multisite Support: Activation logic iterates through blogs in a network.
- Security: Nonce checks, sanitization, and prepared statement wrappers.
Requirements
- WordPress 5.0+
- WooCommerce 4.0+
- PHP 7.4+