Pricing Rules Engine
Three Discount Types
Percentage Off — Subtract X% from regular priceAmount Off — Subtract fixed amount from regular priceSet Price — Replace price with exact amount (added in v1.1.0)Rule Hierarchy
Rules are resolved in this priority order:
1.Variation-specific rule (highest priority)2.Product-specific rule3.Global rule (lowest priority — applies when no product rule exists)Supported Product Types
Simple productsVariable products (with per-variation rules)Grouped productsExternal/affiliate products (display only)Customer Group Management
Create up to 3 custom user roles (Wholesale, VIP, Dealer, etc.)Use existing WordPress rolesUnlimited users per roleRole assignment via WordPress admin or programmaticallyPerformance Optimization
Smart Caching System
Automatic cache method detection (object cache vs transients)Object cache support (Redis, Memcached) with 1-hour TTLTransient fallback with 30-minute TTLIn-memory storage for request-scoped dataAutomatic cache invalidation on rule/product/role changesDatabase Optimization
Custom tables with proper indexes: - idx_role_name — fast role lookups
- idx_product_id — fast product lookups
- idx_role_product — compound index for the common query pattern
- idx_role_active — efficient active rule filtering
Prepared SQL statements (no raw queries)Zero Performance Impact
No database queries for products without active rulesIn-memory flag tracks whether current user has discountsFrontend styles only load on WooCommerce pagesNo JavaScript on the frontend — all pricing is server-sideFrontend Display
Original prices with strikethrough formattingMember prices in theme accent color (customizable via CSS)Automatic price range recalculation for variable productsWorks in shop, product pages, cart, checkout, and mini-cartSecurity
Comprehensive input validation and sanitizationPrepared SQL statements prevent injection attacksNonce verification on all admin actionsCapability checks on all sensitive operations (manage_woocommerce)No external API dependenciesCompatibility
WooCommerce HPOS — Full High-Performance Order Storage supportWordPress Multisite — Per-site configurationCaching plugins — Works with WP Rocket, W3 Total Cache, etc.Page builders — Compatible with Elementor, Divi, etc.WooCommerce extensions — Standard hooks ensure broad compatibilityWhat This Plugin Does NOT Do
Does not support cart-level or order-level discounts (future Pro feature)Does not support time-based pricing windows (future Pro feature)Does not scan or modify existing sale pricesDoes not restrict product visibility by role (pricing only)