=== Direct Checkout Button Generator Per Product ===
Contributors: simpliplugin
Donate link: https://simpliplugin.com
Tags: woocommerce, direct checkout, buy now, skip cart, checkout
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Maximizes landing page efficiencies by converting add-to-cart operations directly into instantaneous checkouts on a per-product basis.

== Description ==

**Direct Checkout Button Generator Per Product** lets you enable direct checkout on individual WooCommerce products. When a customer clicks the add-to-cart button on an enabled product, they skip the cart page entirely and land straight on checkout.

= Key Features =

* **Per-Product Control** – Enable or disable direct checkout on each product individually from the product editing screen.
* **Custom Button Text** – Replace the default "Add to cart" text with a custom label like "Buy Now" or "Checkout Now" for each product.
* **Clean Cart** – Automatically clears the cart before adding the product, ensuring customers check out with only the intended item.
* **Works Everywhere** – Redirects to checkout from both the single product page and the shop/archive pages.
* **WooCommerce HPOS Compatible** – Fully compatible with WooCommerce High-Performance Order Storage.
* **Lightweight** – No bloat, no unnecessary settings pages. Options live right in the product editor where you need them.

= How It Works =

1. Edit any WooCommerce product.
2. Scroll to the **General** tab in the Product Data panel.
3. Find the **Direct Checkout Settings** section.
4. Enable direct checkout, set your custom button text, and configure additional options.
5. Save the product. Customers who add this product to their cart will be redirected to checkout instantly.

= Use Cases =

* Landing pages with a single product focus.
* Service-based products requiring immediate checkout.
* Time-sensitive offers and flash sales.
* Simplified purchasing flows for digital products.

== Installation ==

1. Upload the `direct-checkout-button-generator-per-product` folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Make sure WooCommerce is installed and activated.
4. Edit any WooCommerce product and find the **Direct Checkout Settings** under the General tab.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes, WooCommerce must be installed and activated. The plugin will display an admin notice if WooCommerce is not found.

= Can I set different button text for each product? =

Yes, each product has its own custom button text field. Leave it empty to use the default WooCommerce button text.

= Will this affect all products? =

No. Direct checkout is enabled on a per-product basis. Only products where you explicitly enable the feature will redirect to checkout.

= Does this work with variable products? =

Yes, the direct checkout redirect works with all product types including simple and variable products.

= Is it compatible with WooCommerce HPOS? =

Yes, the plugin declares full compatibility with WooCommerce High-Performance Order Storage (Custom Order Tables).

== Screenshots ==

1. Direct Checkout Settings panel on the product edit screen (General tab).
2. Custom "Buy Now" button on the product page.
3. Immediate redirect to checkout after clicking the button.

== Changelog ==

= 1.0.0 =
* Initial release.
* Per-product direct checkout toggle.
* Custom button text per product.
* Automatic cart clearing before redirect.
* Works on single product, shop, and archive pages.
* WooCommerce HPOS compatibility.

== Upgrade Notice ==

= 1.0.0 =
Initial release of Direct Checkout Button Generator Per Product.
