=== CampaignBay - Automated Discount Campaigns & Flash Sales for WooCommerce ===
Contributors: wpanchorbay, sankarsan
Tags: discount manager, bulk discount, dynamic pricing, woocommerce, bogo
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.0
Stable tag: 1.1.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html


Automated Discount Campaigns & Flash Sales for WooCommerce

== Description ==

Move beyond basic coupons and revolutionize your WooCommerce store's promotions with CampaignBay.

[youtube https://www.youtube.com/watch?v=6YYr4eOHspM]

CampaignBay is a powerful, user-friendly marketing tool that empowers you to create sophisticated, automated discount campaigns directly from your WordPress dashboard. Whether you're running a Black Friday flash sale, rewarding customers for bulk purchases, or creating urgency with a limited-time offer, CampaignBay provides the robust features you need to drive sales and engage customers.

With its intuitive dashboard, flexible campaign types, and high-performance discount engine, you get unparalleled control over your marketing strategy without sacrificing site speed.


**Why Store Owners Love CampaignBay:**

*   Set It & Forget It – Campaigns auto-start and auto-stop on your schedule.
*   Beautiful Dashboard – Real-time analytics show you exactly how your promotions are performing.
*   Lightning Fast – Multi-level caching keeps your store blazingly fast.
*   Campaign Calendar - Workable and effective calendar to enable users to have more control over campaigns.
*   100% Free Core Features – No artificial limits. Create unlimited campaigns.


**New:** Campaign Calendar: An informative and interactive calendar with neat visuals that enables users to edit, manage, monitor and evaluate campaigns in a more sophisticated way.
    [youtube https://www.youtube.com/watch?v=Is2-aguE9o8]


**Key Features:**

*   Scheduled Discounts – Run time-limited sales with automatic start and end dates.
*   Quantity Based Discounts – Tiered pricing like "Buy 3+, get 10% off."
*   Early Bird Discounts – Reward the first X customers with special pricing.
*   BOGO (Buy One Get One) – Classic "Buy 2, Get 1 Free" deals.
*   Analytics Dashboard – Track KPIs, charts, and top campaigns.
*   Campaign Calendar: A manageable, campaign initiator tool that doubles as an informative guide.
*   Flexible Targeting – Target entire store, specific products, or categories.
*   Product & Category Exclusions – Fine-tune which items are excluded from discounts.
*   User Role Conditions – Restrict campaigns to Wholesalers, VIPs, or any role.
*   Cart Total Conditions – Apply discounts only when the cart total meets specific criteria.
*   Smart Stacking Logic – Control how discounts interact with each other.
*   Coupon Compatibility – Works seamlessly with WooCommerce coupons.
*   Customizable Messages – Dynamic placeholders for promotional text.
*   Product Page Display – Discount tables and banners on product pages.
*   Cart Integration – Automatic discounts with strikethrough pricing.
*   Campaign Templates – Pre-built templates for quick setup.
*   Full Scheduling & Automation – Reliable WP-Cron based activation/deactivation.
*   Performance Optimized – Multi-level caching for fast storefronts.

**Campaign Types:**

*   **Scheduled Discounts** – Run classic time-limited sales. Set a start and end date, choose percentage or fixed discount, and target your entire store or specific products. Perfect for holiday sales or weekly specials.

*   **Quantity Based Discounts** – Encourage bulk purchases with tiered pricing. "Buy 3+, get 10% off. Buy 5+, get 20% off." Customers see a pricing table on the product page.

*   **Early Bird Discounts** – Create urgency and reward early customers. Offer a discount to the first 50 or 100 buyers. A live counter shows remaining slots.

*   **BOGO (Buy One Get One)** – The classic deal. "Buy 2, Get 1 Free" or "Buy 1, Get 1 at 50% Off." Free items are added directly to the cart.

**Analytics Dashboard:**

*   Active Campaigns – See how many promotions are running.
*   Total Discount Value – Track discounts given over any period.
*   Discounted Orders – Monitor orders that benefited from campaigns.
*   Sales from Campaigns – Measure revenue from promotions.
*   Interactive Charts – Line, bar, and pie chart visualizations.
*   Top Performing Campaigns – Identify winners at a glance.
*   Recent Activity Log – Track campaign creation and updates.
*   Live & Upcoming Campaigns – Quick view of active and scheduled promotions.



**Documentation & Support:**

*   [CampaignBay Pro](https://wpanchorbay.com/campaignbay) – Get more advanced features.
*   [Official Documentation](https://docs.wpanchorbay.com) – Step-by-step guides.
*   [Live Demo](https://wpanchorbay.com/campaignbay/#demo-section) – Try before you install.
*   [Support Forum](https://wpanchorbay.com/support/) – Get help from our team.

== Live Demo ==

Experience the power of CampaignBay firsthand on our interactive demo site. See how campaigns look on the frontend and explore the admin dashboard.

*   [**View the Demo (Frontend & Backend)**](https://wpanchorbay.com/campaignbay/#demo-section)

**Upgrade to CampaignBayPro**

Need more advanced features? [Get CampaignBayPro](https://wpanchorbay.com/campaignbay) and unlock:

*   **BOGO Advanced** – Buy from Category A, get a discount on Category B.
*   **Product In Cart Discounts** – Trigger discounts when specific products are in cart.
*   **Advanced Conditions** – Target by cart total, order history, specific products in cart, and more.
*   **Priority Email Support** – Direct access to our development team.

[Buy CampaignBayPro Now](https://wpanchorbay.com/campaignbay)


== Use Cases ==

*   **Boost Average Order Value** – "Buy 3+, save 10%. Buy 5+, save 20%."
*   **Black Friday Automation** – Schedule sales to start and end automatically.
*   **Product Launch Buzz** – 30% off to the first 100 buyers.
*   **Clear Old Inventory** – "Buy 2, Get 1 Free" on last season's items.
*   **Wholesale Pricing** – Exclusive bulk discounts for Wholesaler roles.
*   **Category Promotions** – 20% off specific categories for a limited time.

== Installation ==

**Requirements:** WooCommerce must be installed and activated.

**From WordPress Dashboard (Recommended)**

1.  Navigate to Plugins → Add New.
2.  Search for "CampaignBay".
3.  Click "Install Now", then "Activate".

**Manual Upload**

1.  Download campaignbay.zip from WordPress.org.
2.  Go to Plugins → Add New → Upload Plugin.
3.  Upload the zip file and click "Install Now".
4.  Click "Activate".

**Getting Started**

After activation, find CampaignBay in your admin sidebar. Click "Add New Campaign" and follow our guide to create your first promotion in under 2 minutes!

== Frequently Asked Questions ==

= Does CampaignBay require WooCommerce? =
Yes. CampaignBay is built specifically for WooCommerce and requires it to be installed and active.

= Is CampaignBay free? =
Yes! The core plugin is 100% free with no artificial limits. A Pro version is available with advanced features.

= What are the system requirements? =
WordPress 5.8+, PHP 7.0+, and WooCommerce installed.

= Can I track campaign performance? =
Yes. The built-in analytics dashboard shows real-time KPIs, charts, and top-performing campaigns.

= What discount types are supported? =
Scheduled Discounts, Quantity Based Discounts, Early Bird Discounts, and BOGO.

= Can discounts stack? =
By default, only the best discount applies. You can enable stacking in Settings → Cart Settings.

= How does scheduling work? =
Set a start and end date. CampaignBay uses WordPress Cron to automatically activate and deactivate campaigns.

= Can I limit discounts to specific user roles? =
Yes! Use the Conditions feature to restrict campaigns to specific roles.

= Where can I get support? =
Visit our [Support Forum](https://wpanchorbay.com/support/).

== Screenshots ==

1.  Dashboard Overview – Real-time KPIs and performance charts.
2.  Campaign Editor – Intuitive interface for creating campaigns.
3.  Campaign Calendar – Visualize and manage campaigns with color-coded bars across Month, Week, and Year views.
4.  All Campaigns (Table View) – Filtering, sorting, and bulk actions.
5.  All Campaigns (Grid View) – Card-based visual overview.
6.  Global Settings – Tabbed interface for plugin configuration.
7.  Product Settings – Customize discount message formats.
8.  Quantity Table Customizer – Style the product page pricing table.
9.  Cart Settings – Configure stacking rules.
10. Advanced Settings – Plugin data management.
11. Frontend: Product Page – Discount table and messages in action.
12. Frontend: Cart Page – Strikethrough pricing and savings display.

== Changelog ==

= 1.1.7 =
*   New Feature: Cart Total Conditions — now you can restrict campaigns based on the total value of the customer's cart.
*   Enhancement: Improved condition evaluation engine for better performance.

= 1.1.6 =
*   Fix: Minor stability improvements and UI refinements.

= 1.1.5 =
*   Fix: Minor Bug Fixes.

= 1.1.4 =
*   Enhancement: UI Optimization.

= 1.1.3 =
*   Fix: Small UI Improvements.

= 1.1.2 =
*   New Feature: Campaign Calendar Page — a dedicated calendar view to easily manage and visualize all your campaigns.
*   Enhancement: Month, Week, and Year layout options for flexible campaign planning.
*   Enhancement: Color-coded campaign bars — each campaign type (BOGO, Scheduled, Quantity, Early Bird, etc.) has its own distinct color for quick identification.
*   Enhancement: Easily spot upcoming and currently active campaigns at a glance.
*   Enhancement: Campaign type filter toggles to show or hide specific campaign types on the calendar.
*   New Feature: Dashboard Calendar Widget — a compact calendar on the Dashboard with dot indicators on dates that have active campaigns.

= 1.1.1 =
*   Added close button to the campaign onboarding modal with a confirmation prompt.

= 1.1.0 =
*   Major Update: Complete UI Redesign! The entire admin interface has been rebuilt for a cleaner, faster, and more intuitive experience.
*   New Feature: Multi-select campaign filters—now filter by multiple types and statuses simultaneously.
*   Enhancement: Modernized dashboard with improved data visualization.
*   Enhancement: Streamlined campaign editor with better form layouts.
*   Enhancement: Refreshed settings pages with improved navigation.
*   Enhancement: Performance improvements and codebase optimizations.
*   Enhancement: Updated documentation links.

= 1.0.9 =
*   Enhancement: UI refinements for a smoother experience.

= 1.0.8 =
*   New Feature: Campaign Templates! Pre-built templates for Flash Sales, BOGO, Bulk Discounts, and Early Bird offers.
*   Enhancement: Visual template selector with example previews.
*   Enhancement: Campaigns now default to "Active" status for faster onboarding.

= 1.0.7 =
*   New Feature: Conditional Discounts! New "Conditions" section with User Role targeting.
*   Enhancement: Major UI upgrade across campaign editor and settings pages.

= 1.0.6 =
*   New Feature: Options to disable promotional messages on cart and product pages.

= 1.0.5 =
*   Enhancement: BOGO architecture upgrade—free products now added as separate cart items.
*   Enhancement: Improved hook system and standardized discount data structure.
*   Fix: Variable product message and table formatting issues.

= 1.0.4 =
*   Fix: Activation error introduced in 1.0.3.

= 1.0.3 =
*   Fix: Minor bug fixes and stability improvements.

= 1.0.2 =
*   Enhancement: Interactive Tour Guide for new users.

= 1.0.1 =
*   Enhancement: Updated plugin display name for better discoverability.
*   Refactor: Migrated admin interface to TypeScript for improved code quality.

= 1.0.0 =
*   Initial release of CampaignBay.

== Upgrade Notice ==

= 1.1.7 =
New Cart Total Conditions feature! Apply discounts based on how much customers spend.

= 1.1.6 =
Stability improvements.

= 1.1.5 =
Minor Bug Fixes. Seamless upgrade.

= 1.1.4 =
UI Optimization. Seamless upgrade.

= 1.1.3 =
Small UI Improvements. Seamless upgrade.

= 1.1.2 =
New Campaign Calendar page and Dashboard Calendar widget. Recommended update.

= 1.1.1 =
Minor UI refinements. Seamless upgrade.

= 1.1.0 =
Major UI Redesign! The entire admin interface has been rebuilt for a cleaner, faster experience. Highly recommended update.

= 1.0.9 =
Minor UI refinements. Seamless upgrade.

= 1.0.8 =
New Campaign Templates feature! Get started faster with pre-built promotions.

= 1.0.7 =
Major update! New Conditions feature and refreshed admin interface.

= 1.0.6 =
New option to disable promotional messages. Seamless upgrade.

= 1.0.5 =
Important BOGO improvements and bug fixes. Recommended update.

= 1.0.0 =
Initial release. Welcome to CampaignBay!