=== WCS Store Rules - Minimum and Maximum Purchase Rules for WooCommerce ===
Contributors: wcstudiohq,b-07,jalal02
Tags: cart rules, min max, quantity, minimum quantity, maximum quantity.
Tested up to: 6.7
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Ultimate Solution for Store-Wide Rules, Restrictions & Customization in WooCommerce.

== Description ==

WCS Store Rules is the ultimate WooCommerce plugin designed to give store owners full control over their store's pricing, visibility, purchasing restrictions, and user-based rules. Whether you want to set up dynamic pricing, restrict purchases by user roles, limit product visibility, or enforce cart conditions, Store Rules offers a seamless and flexible solution.

Transform your WooCommerce store with powerful rule-based functionalities without compromising user experience or performance.

== 🎯This Plugin Is Ideal for: ==
- Wholesale & B2B Stores
- Membership-Based Shops
- Subscription or Digital Product Sellers
- Country or Region-Specific Retailers
- Age or Legally Restricted Product Sellers
- Seasonal/Event-Driven Sales Campaigns


== 🎯 Rule Application Hierarchy ==
Store Rules apply purchase conditions in the following priority order:
1️⃣ **General** → 2️⃣ **Category** → 3️⃣ **Role** → 4️⃣ **Schedule** → 5️⃣ **Product Meta**

Each level can override the previous one, allowing for **fine-tuned purchase control**.


== 🛠 Modules Overview ==

#### 1️⃣ General Rules (Global Store-Wide Rules)
✔ Applies store-wide purchase conditions as the base rule.
✔ Can be overridden by more specific rule types.

#### 2️⃣ Category-Based Rules
✔ Set **custom purchase rules per product category**.
✔ Apply discounts, restrictions, or exclusive offers for selected categories.
✔ Perfect for **seasonal sales, VIP pricing, or bulk category-based purchases rules**.

#### 3️⃣ Role-Based Rules
✔ Assign **purchase conditions based on user roles** (Admin, Customer, Wholesale, Guest).
✔ Differentiate pricing strategies for **retail, wholesale, and VIP customers**.
✔ Ideal for **B2B WooCommerce stores**.

#### 4️⃣ Schedule-Based Rules
✔ Automate purchase rules for **time-sensitive promotions** (flash sales, holiday offers, etc.).
✔ Set start and end dates for **limited-time discounts**.
✔ Enable or disable products at scheduled times.

#### 5️⃣ Product Meta-Based Rules
✔ Apply purchase conditions based on **SKUs, product tags, or metadata**.
✔ Target specific products using WooCommerce custom fields.
✔ Great for **exclusive promotions, restricted items, or custom product pricing**.

#### 6️⃣ Cart-Based Rules (Independent Feature)
✔ Works separately from other modules.
✔ Apply **purchase restrictions based on cart value, quantity, or total items**.
✔ Useful for **bulk purchase limits, free shipping thresholds, and cart-based pricing rules**.

#### 7️⃣ Area-Based Rules (Checkout-Based Feature)
✔ Implement **location-based purchase rules**.
✔ Restrict or allow purchases based on **shipping zones, billing addresses, or country-based conditions**.
✔ Perfect for **geo-restricted pricing and international selling policies**.

# **Why Choose Store Rules?**

✅ **Comprehensive Purchase Rule Management**
✅ **Seamless WooCommerce Integration**
✅ **Time-Based & Location-Based Rules**
✅ **Flexible Customization for Any Store**



== Installation ==

1. **Download & Install**
   - Upload the plugin files to the `/wp-content/plugins/store-rules` directory.
   - Or install the plugin via the WordPress **Plugins** screen.

2. **Activate the Plugin**
   - Go to the **Plugins** menu and activate **Store Rules**.

3. **Configure Settings**
   - Navigate to **Store Rules** and configure the purchase conditions as per your store’s needs.

== ✨ Business Benefits of Using Store Rules ==

**Better Store Management**
Streamline operations with automated restrictions and rule-based customizations.

**Enhanced User Experience**
Show relevant products to the right users without cluttering their shopping experience.

**Optimized Checkout Process**
Prevent unwanted purchases and enforce essential store policies without manual intervention.

**Improved Conversion Rates**
Encourage bulk purchases and upselling by implementing targeted pricing and cart rules.

**Seamless Integration With WooCommerce**
Works with existing WooCommerce features and plugins without conflicts.

== ⚡ More Upcoming Features ==
We're constantly improving Store Rules with powerful new features. Here’s what’s coming next:

- Pre-built Rule Templates
- Product Bundle Rules
- AI-Powered Rule Suggestions
- Advanced Analytics Dashboard
- Role-Based Coupons & Vouchers
- Auto Rule Triggers Based on Activity

== Frequently Asked Questions ==

**1️⃣ Can I apply rules for different user roles?**
Yes! You can customize visibility, pricing, and restrictions for any user role.

**2️⃣ Can I restrict access by location?**
Absolutely! Geo-based rules allow product/category visibility by country or region.

**3️⃣ Can I set purchase limits?**
Yes, you can define minimum/maximum limits for products, categories, or carts.

**4️⃣ Is it compatible with other discount plugins?**
Yes, Store Rules works seamlessly with most WooCommerce pricing plugins.

**5️⃣ Can I schedule rules for sales/events?**
Definitely! Time-based rules let you automate restrictions for campaigns or holidays.

== Changelog ==

= 1.1.0 (06 March 2025) =

- Initial release.
- Added **category-based, role-based, schedule-based, product meta-based, cart-based, and area-based purchase rules**.
- Implemented **discount priority hierarchy** for rule execution.
- Full WooCommerce compatibility.


= 1.0.1 (03 February 2025) =
* Initial release.

📢 **Download Store Rules today and take control of your WooCommerce store!** 🚀


