Smart Discount

Описание

🚀 SmartDiscount

Transform your WooCommerce store with SmartDiscount – the ultimate dynamic discount plugin that helps you create engaging bulk discounts with real-time progress messages. Drive more sales and enhance customer experience with visually appealing discount notifications.

Why Choose SmartDiscount?

  • 🎯 Dynamic Discount Rules

    Create flexible bulk discount rules based on cart totals with percentage or fixed amount discounts.

  • Real-Time Progress Messages
    Show customers how close they are to unlocking discounts with beautiful, customizable messages.

  • 🎨 Visual Customization
    Style your discount messages with an intuitive visual editor — no coding required!

🌟 Key Features You’ll Love

  • 📊 Flexible Discount Types

    • Percentage discounts (e.g., 10% off)
    • Fixed amount discounts (e.g., $20 off)
    • Customizable minimum purchase requirements
  • 💫 Beautiful Message Styles

    • Full visual customization
    • Color and typography controls
    • Animations and transforms
    • Responsive design
  • 🔄 Real-Time Updates

    • Dynamic cart total tracking
    • Instant message updates
    • Progress indicators
    • Automatic discount application
  • ⚙️ Easy Setup

    • Intuitive admin interface
    • Visual message preview
    • Simple shortcode placement
    • WooCommerce integration

💎 What Makes SmartDiscount Stand Out?

  • Visual Editor: Style messages without coding
  • Real-Time Updates: Keep customers engaged
  • Flexible Rules: Create the perfect discount strategy
  • Performance Optimized: Fast and reliable

Technical Details

🔧 Plugin Architecture

  1. Core Components:

    • Custom post type for discount rules
    • React-based admin interface
    • Real-time frontend updates via AJAX
    • WooCommerce hooks integration
  2. Performance Features:

    • Optimized database queries
    • Cached discount calculations
    • Minified assets
    • Lazy loading of admin resources
  3. Security Measures:

    • WordPress nonce verification
    • Data sanitization and validation
    • XSS protection
    • AJAX security checks
  4. Integration Points:

    • WooCommerce cart hooks
    • WordPress REST API
    • Dynamic shortcode system
    • Frontend event handling
  5. Browser Compatibility:

    • Chrome 80+
    • Firefox 75+
    • Safari 13+
    • Edge 80+
    • Opera 67+
  6. Dependencies:

    • WordPress 5.0+
    • WooCommerce 5.0+
    • PHP 7.4+
    • MySQL 5.6+ or MariaDB 10.1+
  7. Optimization:

    • Conditional script loading
    • Database query optimization
    • Asset minification
    • Caching support

Development Information

  • 🔨 Contributors: LogikLabs
  • 🌐 Plugin URI: SmartDiscount
  • 🏢 Company Website: logiklabs.io
  • 📦 Tags: woocommerce, discounts, bulk discounts, dynamic pricing
  • 🧩 Requirements: WordPress 5.0+, PHP 7.4+
  • 📜 License: GPL-2.0-or-later

Скриншоты

  • Create flexible discount rules
  • Style messages with the visual editor
  • Real-time progress messages on the frontend
  • Easy-to-use admin interface

Установка

🛠️ Installation Instructions

  1. 📥 Download the Plugin
    Get the SmartDiscountforWoocommerce.zip file from WordPress.org.

  2. 🚀 Install in WordPress

    • Go to Plugins > Add New > Upload Plugin
    • Select the downloaded zip file
    • Click Install Now
  3. Activate the Plugin
    Click Activate after installation.

  4. ⚙️ Create Your First Discount Rule

    • Go to DiscountRules > Add New Rule
    • Set your discount conditions and values
    • Style your messages
    • Add the shortcode to your pages

Часто задаваемые вопросы

🔍 How do I add a discount message to my pages?

Use the shortcode [dlift_discount_message id="X"] where X is your rule ID. Place it anywhere you want the message to appear.

⚙️ Can I have multiple discount rules?

Yes! Create as many rules as you need. However, only one rule can be active per page using the shortcode.

🎨 Can I customize the message appearance?

Absolutely! Use our visual editor to customize colors, fonts, spacing, animations, and more.

💰 What types of discounts can I create?

Create percentage-based discounts (e.g., 10% off) or fixed amount discounts (e.g., $20 off) when customers reach a specified cart total.

⚡ Do the messages update in real-time?

Yes! Messages update automatically when customers add or remove items from their cart.

🔒 Is the plugin secure?

Yes! We implement WordPress security best practices including:
— Nonce verification for all forms
— Data sanitization and validation
— XSS protection
— SQL injection prevention
— User capability checks

🚀 Will it slow down my site?

No! The plugin is optimized for performance:
— Minimal database queries
— Efficient caching system
— Conditional asset loading
— Optimized JavaScript execution

💻 Does it work with all themes?

Yes! The plugin is theme-independent and works with any WooCommerce-compatible theme. The discount messages use isolated styles to prevent conflicts.

🔄 How often do messages update?

Messages update in real-time through AJAX when:
— Products are added to cart
— Products are removed from cart
— Cart quantities are updated
— Coupons are applied/removed

🛠️ Can I customize the discount calculations?

Yes! The plugin provides filters for customizing:
— Discount calculations
— Eligibility rules
— Message content
— Style applications

📱 Is it mobile-friendly?

Absolutely! The plugin is fully responsive and tested across devices:
— Mobile phones (iOS/Android)
— Tablets
— Desktop browsers
— Different screen sizes

🌐 Does it work with multilingual sites?

Yes! The plugin is translation-ready and compatible with:
— WPML
— Polylang
— Other WordPress translation plugins

⚡ What are the server requirements?

Minimum requirements:
— PHP 7.4 or higher
— MySQL 5.6+ or MariaDB 10.1+
— WordPress 5.0+
— WooCommerce 5.0+

🔍 How can I debug issues?

The plugin includes debugging tools:
— Detailed error logging
— Debug mode for messages
— Testing tools for discount rules
— Performance monitoring

💾 What data is stored?

The plugin stores:
— Discount rules (as custom post type)
— Rule settings (as post meta)
— Style configurations
— Message templates
No customer personal data is stored.

🔄 Can I import/export rules?

Yes! The plugin supports:
— Rule import/export via CSV
— WordPress import/export system
— Backup of style settings
— Configuration transfers

⚙️ Are there developer hooks?

Yes! The plugin provides extensive hooks:
— Filters for discount calculations
— Actions for rule processing
— Style modification filters
— Message content filters

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«Smart Discount» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Smart Discount» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.0

  • Initial release
  • Dynamic discount rules with percentage and fixed amounts
  • Real-time progress messages
  • Visual message editor
  • WooCommerce integration