Conditional Free Shipping Packets & Boxes
========================================

This plugin customizes WooCommerce shipping costs based on the product categories and total cart quantity.

---

INSTALLATION
------------
1. Upload the plugin files to `/wp-content/plugins/paul/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings → Shipping Labels to customize shipping method labels

---

CONFIGURATION
-------------
1. Navigate to **Settings → Shipping Labels** in your WordPress admin
2. Customize the labels for each shipping method:
   - **Free Shipping (100+ items)**: Label for orders with 100+ total items
   - **Boxes Shipping**: Label for orders containing boxes
   - **Packets Shipping (< 5)**: Label for orders with less than 5 packets
   - **Free Shipping (5+ Packets)**: Label for orders with 5+ packets
3. Leave fields blank to use default labels
4. Click "Save Changes" to apply your custom labels

---

PACKETS CATEGORY
----------------
- If your cart contains only products from the 'packets' category:
    - Less than 5 packets: Shipping is $4
    - 5 or more packets: Shipping is FREE

---

BOXES CATEGORY
--------------
- If your cart contains any product from the 'boxes' category (regardless of other items):
    - Shipping is $8
    - This rule overrides the packets rule if both are present

---

FREE SHIPPING (TOTAL QUANTITY)
-----------------------------
- If your cart contains 100 or more items (from any category):
    - Shipping is FREE
    - This rule overrides all other shipping rules

---

NOTES
-----
- The plugin automatically applies the correct shipping cost based on your cart contents.
- If no products from 'packets' or 'boxes' are in the cart, the default shipping cost is used.
- Only one shipping method will be displayed at a time based on your cart contents.
- Custom labels are applied immediately after saving in the admin settings.

---

TROUBLESHOOTING
---------------
- If shipping methods aren't updating, try refreshing the cart page
- Check that your products are assigned to the correct categories ('packets' or 'boxes')
- Ensure WooCommerce is properly configured with at least one shipping method 