# Add bulk cart packages

**Contributors:** toms15  
**Author:** Tommaso Costantini  
**Tags:** woocommerce, bulk add to cart, custom packages, multiple products, share cart URL, coupon  
**Requires at least:** 5.8  
**Tested up to:** 6.7  
**Requires PHP:** 7.4  
**Stable tag:** 1.1.0  
**License:** GPL-2.0+  
**License URI:** [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)  

Add bulk cart packages allows you to create custom product packages in WooCommerce and add them to the cart with a single click.  
Now supports adding coupons to packages.

---

## 📌 Description  
**Add bulk cart packages** is a WooCommerce plugin that lets you create custom product packages.  
Each package generates a dedicated **URL** that, when opened, automatically adds all selected products with their specified quantities to the cart.  

### 🔥 **New in version 1.1.0:**  
✅ You can now associate a **coupon** with each package, which is automatically applied when the package is added to the cart.

### **Main Features**  
- Create custom packages with WooCommerce products.  
- Assign specific quantities to each product.  
- Generate a unique URL to add multiple products to the cart at once.  
- **NEW: Automatically apply a coupon when adding a package to the cart.**  
- Fully integrated with WooCommerce.  
- Prevents saving empty packages.  
- Displays an admin notice if WooCommerce is not active.  

---

## 🛠 Installation  
1. Make sure **WooCommerce** is installed and activated.  
2. Upload the plugin to the `/wp-content/plugins/` directory.  
3. Activate the plugin from the **Plugins** menu in WordPress.  
4. Navigate to **"Add bulk cart packages"** in the WooCommerce admin menu to start creating packages.  

---

## ❓ Frequently Asked Questions  

### ❔ Does this plugin work without WooCommerce?  
❌ No, **Add bulk cart packages** requires WooCommerce to function.  

### ❔ Can I edit a package after creating it?  
✅ Yes, you can modify the **title, products, quantities, and assigned coupon** at any time.  

### ❔ Where can I find the generated URL?  
🔗 The URL appears in the **"Created Packages"** table and can be copied and shared.  

### ❔ How do I apply a coupon to a package?  
🎟️ When creating a package, you can enter a **WooCommerce coupon code** that will be **automatically applied** when the package is added to the cart.  

---

## 📷 Screenshots  
1️⃣ Creating a new package with products, quantities, and a **coupon**.  
2️⃣ List of created packages with generated **URLs** and associated **coupons**.  
3️⃣ Bulk add to cart functionality via URL.  

---

## 📜 Changelog  

### 🆕 **1.1.0**  
- Added the ability to **apply a coupon** when adding a package to the cart.  

### 🏁 **1.0.0**  
- Initial release of the plugin.  

---

## 🔔 Upgrade Notice  

### 🚀 **1.1.0**  
- Now you can **apply a WooCommerce coupon** when adding a package to the cart.  

### 🏁 **1.0.0**  
- Initial version, no updates required.  