=== WooCommerce Remove Cart Button & Custom Replacement ===
Contributors: netgreater
Tags: woocommerce, cart button, custom button, remove add to cart, product page, elementor, gutenberg
Requires at least: 5.8
Tested up to: 6.5
Stable tag: 2.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Replaces or removes the Add to Cart button on single and category pages, manageable per-product in the Product Data panel. Fully compatible with Elementor and Gutenberg.

== Description ==

WooCommerce Remove Cart Button & Custom Replacement is a powerful and lightweight plugin developed by Net Greater Technologies, LLP. It gives store owners absolute control over the "Add to Cart" button on a per-product basis.

Whether you need to replace the standard cart button with an "Inquire Now" link, an affiliate link, or simply hide it entirely for specific products, this plugin integrates seamlessly directly into the native WooCommerce Product Data panel.

= Features =
*   **Per-Product Control:** Toggle the Add to Cart button on or off for individual products.
*   **Custom HTML Replacement:** Easily insert custom links, buttons, or text in place of the cart button.
*   **Elementor & Gutenberg Ready:** Includes native Elementor widgets and Gutenberg blocks for seamless drag-and-drop building.
*   **Advanced Custom Notes:** Add disclaimers or notes above or below your custom buttons. Fully supports HTML formatting (headings, lists, bold text).
*   **Built-in Styling:** Customize the background color, text color, and border-radius directly from the backend.
*   **Translation Ready:** Fully internationalized (i18n) and ready to be translated into any language.
*   **Aggressive Page Builder Override:** Automatically detects and replaces custom Add to Cart widgets built by Elementor. 
*   **Lightweight & Secure:** Uses strict WordPress sanitization, nonce verification, and native WooCommerce hooks for optimal performance and security.

== Installation ==

1. Upload the plugin files to your `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to **Products -> All Products** and edit any product.
4. Scroll down to the **Product Data** box and click on the new **Custom Cart Button** tab to configure your settings.

== Frequently Asked Questions ==

= Does this hide the button on the shop and category pages too? =
Yes! If you check the "Disable Default Add to Cart" box for a product, it will apply to both the single product page and the main shop loop.

= Does this work with Elementor? =
Yes. The plugin automatically intercepts Elementor's default Add to Cart widgets. We have also included a native "Custom Cart Button" Elementor widget that you can drag and drop into your custom page layouts.

= What happens if I leave the replacement HTML field blank? =
The Add to Cart button will simply be removed, and nothing will be displayed in its place.

== Changelog ==

= 2.2 =
* Added: Native Elementor widget integration.
* Added: Native Gutenberg block integration.
* Added: Full internationalization (i18n) support for multi-language translations.
* Added: Support for rich HTML within the Custom Note field.
* Added: Ability to position the Custom Note above or below the button.
* Security: Implemented strict nonce validation, user capability checks, and rigorous data sanitization across all fields.
* Fixed: Aggressive override added to automatically replace stubborn Elementor Add to Cart widgets without needing shortcodes.

= 2.1 =
* Plugin rename and rebranding.
* Author updated to Net Greater Technologies, LLP (www.netgreater.com).

= 2.0 =
* Refactored into object-oriented structure.
* Added per-product backend panel.
* Added styling controls (Colors, Border Radius).
* Added custom note field.
* Added shortcode support.

= 1.0 =
* Initial release.