=== AWC Member Pricing for WooCommerce ===

Company: Merchandising & Services Logistics Group Pty Ltd
Trading Name: Australian Web Connections
Contributors: australianwebconnections
Tags: woocommerce, member pricing, wholesale pricing, product pricing, ecommerce
Requires at least: 5.8
Requires PHP: 7.4
Requires Plugins: woocommerce
Tested up to: 7.1
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AWC Member Pricing for WooCommerce adds a member price to WooCommerce products and applies it to logged-in customers at checkout.


== Description ==

AWC Member Pricing for WooCommerce lets store owners configure a separate member price for WooCommerce products. Standard and member prices can be displayed together, while the member price is applied when the customer is logged in.

The plugin supports simple products and product variations, automatic product and shop displays, Gutenberg, WordPress widgets, the `[awcmeprf_member_pricing]` shortcode, and WooCommerce product REST API support.

Guests can also receive member pricing during checkout when they select the WooCommerce option to create an account. Both classic checkout and WooCommerce block checkout flows are supported.


== How It Works ==

1. Open **WooCommerce > Settings > Member Pricing** and configure the member-price label, automatic display, and optional description.
2. Edit a simple product and enter its price in the **Member Pricing** product-data tab.
3. Edit a variable product and enter member prices on the applicable variations.
4. Add the Member Pricing Display block, widget, or `[awcmeprf_member_pricing]` shortcode where the pricing should appear.
5. Logged-in customers receive the member price when they add an eligible product to the cart.


== Main Features ==

* Separate member pricing for WooCommerce products.
* Support for simple products and product variations.
* Member pricing for logged-in customers at checkout.
* Guest checkout support when the customer selects the create-account option.
* Automatic member-price display on single-product pages and WooCommerce shop loops.
* Member-price badge support for supported shop-card products.
* Dynamic standard and member prices when a variation is selected.
* Configurable member-price label and optional rich-text description.
* Gutenberg block named **Member Pricing Display**.
* **Member Pricing Display** WordPress widget with container and price-part styling controls.
* **Why Join** widget for member benefits and an optional call-to-action button.
* Native ForgeEngine widgets for Member Pricing Display and Why Join.
* `[awcmeprf_member_pricing]` shortcode for product-context layouts.
* `member_price` field in the WooCommerce product REST API.
* Bundle-product safeguards that preserve bundle extension pricing.
* Translation-ready interface using the `awc-member-pricing-for-woocommerce` text domain.


== Installation ==

1. Download the AWC Member Pricing for WooCommerce plugin package.
2. In WordPress, go to **Plugins > Add New > Upload Plugin**.
3. Upload the plugin ZIP file and select **Install Now**.
4. Select **Activate Plugin** after installation finishes.
5. Confirm that WooCommerce is installed and active.
6. Go to **WooCommerce > Settings > Member Pricing** and configure the plugin.
7. Edit WooCommerce products and enter member prices in the **Member Pricing** tab or on individual variations.
8. Enable automatic display, or add the block, widget, or `[awcmeprf_member_pricing]` shortcode to your product layout.
9. Test the pricing as both a guest and a logged-in customer.

To update the plugin, install the new version over the existing version from the WordPress Plugins screen. Existing member prices and plugin settings are retained during normal upgrades.


== Usage ==

= Automatic display =

When **Automatically display pricing block** is enabled, the plugin adds member-pricing output to single-product pages and shop loops. Variable products show a prompt until a variation is selected, after which the standard and member prices update dynamically.

= Gutenberg block =

Insert **Member Pricing Display** from the WooCommerce product elements block category. The block supports controls for text colour, background colour, border colour, padding, and border radius.

= Widgets =

Add one of the following widgets from **Appearance > Widgets** or a compatible page builder, including ForgeEngine:

* **Member Pricing Display** - displays standard and member prices with configurable order and styling.
* **Why Join** - displays configurable member benefits and an optional join button on products with member pricing.

= Shortcode =

Use `[awcmeprf_member_pricing]` inside a WooCommerce product context. The shortcode displays the regular price, member price, configured label, and optional description. It returns no output when no current product or member price is available.


== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active.

= Who receives the member price? =

Logged-in customers receive the member price for products that have one configured. Guests see the regular price unless they select the create-account option during checkout.

= Can I set member prices for variable products? =

Yes. Enter the member price on each applicable variation. The displayed value updates when the customer selects a variation.

= Can I disable the automatic pricing display? =

Yes. Disable **Automatically display pricing block** under **WooCommerce > Settings > Member Pricing**. You can still use the block, widgets, or shortcode.

= Does the plugin change prices in the WordPress admin? =

No. Member-price logic is disabled in the WordPress admin product screens.

= Does the plugin support bundle products? =

The plugin avoids replacing bundle and bundle-component prices so that the active bundle extension continues to control bundle pricing.

= Is the member price available through the REST API? =

Yes. WooCommerce product REST responses expose a `member_price` field, and authorised product-edit requests can update it.


== Other AWC Plugins ==

* [AWC Vehicle Fitment Search](https://wordpress.org/plugins/awc-vehicle-fitment-search/) - help customers find products that match their vehicle.
