=== Redirect Purchase to Chat for Woo ===
Contributors: muttgroup  
Donate link: https://buymeacoffee.com/muttstudio  
Tags: woocommerce, chat, redirect, buy button, whatsapp  
Requires at least: 4.7  
Tested up to: 6.8  
Stable tag: 1.3
Requires PHP: 7.2  
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  

Redirect the WooCommerce "Buy Now" button to a custom chat link or phone number with a pre-filled message. Developed by Mutt Group / Mutt Studio.

== Description ==

**Redirect Purchase to Chat for Woo** lets you replace the standard "Buy Now" WooCommerce button with a customizable link that sends users directly to a chat (like WhatsApp).  
Perfect for stores that prefer to finalize sales via messaging, allowing personal interaction before closing a deal.

**Features:**

- Redirect the "Buy Now" button to a custom chat URL or phone number.
- Supports platforms like WhatsApp, Telegram, or any URL with pre-filled parameters.
- Opens the chat in a new tab on both product and archive pages.
- Customize the button label and the default message.
- Simple admin settings within the WooCommerce menu.
- Multi-language support: English and Portuguese (pt_BR).

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Go to `WooCommerce > Compra para Chat` to configure your settings.

== Frequently Asked Questions ==

= What does this plugin do? =  
It redirects the "Buy Now" button in WooCommerce product pages to a custom chat link with a pre-filled message, allowing customers to start a conversation (e.g., on WhatsApp) before completing the purchase.

= Can I customize the message and the button text? =  
Yes, you can define the WhatsApp number, message template, and button label in the plugin settings.

= Will this plugin work without WooCommerce? =  
No. This plugin requires WooCommerce to be installed and activated.

= Can I use it with Telegram or other platforms? =  
Yes. As long as the platform supports chat initiation via URL, you can insert a custom URL in the settings.

== Screenshots ==

1. Plugin settings screen.
2. Custom button on the product page.
3. WhatsApp chat with pre-filled message.

== Changelog ==

= 1.3 =
* Added support for WooCommerce plugin dependency header.
* Improved compatibility with WordPress 6.8.
* Minor fixes and optimizations.

= 1.2 =
* Added optional custom button text.
* Improved default message behavior.

= 1.0 =
* Initial release.

== Upgrade Notice ==

= 1.3 =
Adds support for plugin dependency checking and ensures better compatibility with the latest WordPress and WooCommerce versions.