MaxtDesign

Features

Pricing Rules Engine

Three Discount Types

  • Percentage Off — Subtract X% from regular price
  • Amount Off — Subtract fixed amount from regular price
  • Set 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 rule
  • 3.Global rule (lowest priority — applies when no product rule exists)
  • Supported Product Types

  • Simple products
  • Variable products (with per-variation rules)
  • Grouped products
  • External/affiliate products (display only)
  • Customer Group Management

  • Create up to 3 custom user roles (Wholesale, VIP, Dealer, etc.)
  • Use existing WordPress roles
  • Unlimited users per role
  • Role assignment via WordPress admin or programmatically
  • Performance Optimization

    Smart Caching System

  • Automatic cache method detection (object cache vs transients)
  • Object cache support (Redis, Memcached) with 1-hour TTL
  • Transient fallback with 30-minute TTL
  • In-memory storage for request-scoped data
  • Automatic cache invalidation on rule/product/role changes
  • Database 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 rules
  • In-memory flag tracks whether current user has discounts
  • Frontend styles only load on WooCommerce pages
  • No JavaScript on the frontend — all pricing is server-side
  • Frontend Display

  • Original prices with strikethrough formatting
  • Member prices in theme accent color (customizable via CSS)
  • Automatic price range recalculation for variable products
  • Works in shop, product pages, cart, checkout, and mini-cart
  • Security

  • Comprehensive input validation and sanitization
  • Prepared SQL statements prevent injection attacks
  • Nonce verification on all admin actions
  • Capability checks on all sensitive operations (manage_woocommerce)
  • No external API dependencies
  • Compatibility

  • WooCommerce HPOS — Full High-Performance Order Storage support
  • WordPress Multisite — Per-site configuration
  • Caching plugins — Works with WP Rocket, W3 Total Cache, etc.
  • Page builders — Compatible with Elementor, Divi, etc.
  • WooCommerce extensions — Standard hooks ensure broad compatibility
  • What 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 prices
  • Does not restrict product visibility by role (pricing only)