=== Chili Shop B2B – Customer group prices for online shops ===
Contributors: chilicooperation
Tags: b2b, wholesale, customer groups, prices, woocommerce
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Customer groups with their own prices for WooCommerce shops: percentage discount or fixed group prices, plus a dealer application with approval.

== Description ==

**Chili Shop B2B** shows approved business customers their own prices. You create customer groups, for example "Dealer" and "Wholesale customer", and assign customers to them. Each group gets a percentage discount or fixed prices per product. The admin interface is currently in German.

**The plugin only changes prices and how they are displayed. It does not exempt anyone from VAT and does not check VAT IDs with any authority.**

**Features (all free, no limits)**

* Any number of customer groups, customers assigned in the admin area
* Per group a percentage discount on all products or fixed group prices per product
* Fixed group prices for simple products and for every variation
* Price display for logged-in group members: group price, optionally the regular price struck through and a note such as "Your dealer price"
* Prices go through the price filters of WooCommerce, so cart, checkout and order use the group price
* Dealer application via shortcode `[chili_haendler_antrag]` (company, contact person, email, VAT ID, message)
* Approval in the admin area: the customer account is found or created and assigned to the group
* Emails on receipt, approval and rejection, texts editable
* A note in the customer account showing which group the account belongs to
* The group is stored with the order
* Guests never get group prices. Notes on page caching are in the settings

**Requirement**

This plugin needs WooCommerce. Without WooCommerce it shows a notice in the admin area and does nothing. This plugin is an independent add-on and is not affiliated with, endorsed by or supported by WooCommerce or Automattic. "WooCommerce" is a trademark of its respective owners and is used here only to describe compatibility.

**Privacy**

The plugin sets no cookies, contains no tracking and sends no data to external servers. Applications are stored in the database of your website. IP addresses are not stored. The form has protection against automated submissions (hidden field, time check, rate limit).

**Optional Pro add-on (separate, for businesses only)**

A separate add-on offers quantity tiers, minimum order value, minimum and package quantities, visibility per group, price lists as CSV and more. It is sold on the provider's website at chili-cooperation.com. All features of this plugin stay free permanently; nothing in this plugin is locked. More information: https://chili-cooperation.com/wp-apps/#shop-b2b

**Important notes**

This plugin is a technical tool and not legal, tax or data protection advice. It only changes prices and how they are displayed. There is no tax exemption. The VAT ID in the application is only checked for its format; there is no lookup with any authority. The texts supplied are editable defaults and not reviewed legal texts. The shop operator is responsible for the shop. Use is at your own risk, and the plugin is provided without warranty.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the plugin folder to `/wp-content/plugins/` or search for it under "Plugins > Add New", and activate it.
3. In the "Chili Shop B2B" menu create a customer group.
4. Assign customers in the "Kunden" (customers) tab, or put the shortcode `[chili_haendler_antrag]` on a page.
5. For fixed group prices: enter the prices on the product in the "General" section and on every variation.

== Frequently Asked Questions ==

= Do guests see the dealer prices? =
No. Only logged-in members of a group get group prices.

= Does the plugin work with page caching? =
Yes, as long as the cache does not store pages for logged-in visitors, which is the default with most solutions. Please check this, and exclude the page with the application form from the cache.

= Does the plugin exempt dealers from VAT? =
No. The plugin only changes prices and how they are displayed. WooCommerce calculates tax as you have configured it.

= Is the VAT ID verified? =
Only its format is checked. There is no lookup with any authority.

= Do group prices apply in the cart and in the order? =
Yes. The prices go through the price filters of WooCommerce.

= Can a customer be in several groups? =
No. A customer belongs to at most one group.

= Does the plugin set cookies or connect to external servers? =
No. It sets no cookies and sends no data to external servers.

== Screenshots ==

1. Shop page with products and prices
2. Customer groups overview with the form for creating a new group
3. Edit form for a customer group with a percentage discount
4. Assigning customers to groups
5. Dealer applications waiting for approval
6. Dealer application form on the front end

== Changelog ==

= 0.1.0 =
* Initial release.
