=== BotSailor Abandoned Cart Webhook for WooCommerce ===
Contributors: konokcse
Donate link: https://botsailor.com/
Tags: WooCommerce, Abandoned Cart, Webhook, Cart Recovery, BotSailor
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

BotSailor Abandoned Cart Webhook sends WooCommerce cart abandonment data to a webhook URL for recovery.

== Description ==
**BotSailor Abandoned Cart Webhook** is a flexible WooCommerce plugin for store owners who want to enhance their **abandoned cart recovery** process. When a customer abandons their cart, this plugin captures essential data—including customer contact information and cart contents—and sends it as a JSON payload to a specified webhook URL, allowing easy integration with various platforms.

Although this plugin works seamlessly with **BotSailor**—a powerful **WhatsApp marketing** and chatbot solution—it's designed to work with any CRM or marketing platform that supports webhook integration. Use it to bring **abandoned cart notifications** into your preferred system and recover lost sales on any messaging or follow-up platform. For more details on BotSailor’s features, visit [BotSailor.com](https://botsailor.com).

= Key Features of BotSailor Abandoned Cart Webhook =
* Captures abandoned cart details in WooCommerce, including customer email, phone number, and cart contents, enhancing **WooCommerce abandoned cart recovery**.
* Sends data to a customizable webhook URL in JSON format, making it easy to integrate with any CRM, marketing, or analytics platform.
* Full integration with BotSailor for **WhatsApp abandoned cart recovery** notifications. Learn more about how to [send WooCommerce abandoned cart recovery messages to WhatsApp with BotSailor](https://botsailor.com/blog/send-woocommerce-abandoned-cart-recovery-message-to-whatsapp-by-botsailor).
* Customizable settings for flexible implementation and a seamless experience with any platform.

Using the **BotSailor Abandoned Cart Webhook plugin** gives you powerful tools to improve cart recovery and reach customers on their preferred channels, such as WhatsApp or your CRM platform.

### Sample JSON Format ###
The plugin sends the following JSON payload to the specified webhook URL when a cart is abandoned:

```json
{
    "user_id": 123,
    "email": "customer@example.com",
    "phone": "+1234567890",
    "billing_address": {
        "first_name": "John",
        "last_name": "Doe",
        "address_1": "123 Main St",
        "address_2": "Apt 4B",
        "city": "Sample City",
        "state": "CA",
        "postcode": "12345",
        "country": "US"
    },
    "shipping_address": {
        "first_name": "John",
        "last_name": "Doe",
        "address_1": "123 Main St",
        "address_2": "Apt 4B",
        "city": "Sample City",
        "state": "CA",
        "postcode": "12345",
        "country": "US"
    },
    "cart_items": [
        {
            "product_id": 456,
            "product_name": "Sample Product 1",
            "quantity": 2
        },
        {
            "product_id": 789,
            "product_name": "Sample Product 2",
            "quantity": 1
        }
    ]
}



== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/wc-abandoned-cart-webhook` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to WooCommerce > Settings > Abandoned Cart Webhook to configure your webhook settings.

== Frequently Asked Questions ==
= How does this plugin detect abandoned carts? =
The plugin runs a cron job every 5 minutes to check for abandoned carts. If a customer leaves items in the cart and does not complete the purchase, the data is captured and sent to the specified webhook URL.

= Can I customize the webhook URL? =
Yes, you can set a custom webhook URL from the WooCommerce settings page.

= Does this plugin work with BotSailor? =
Yes, this plugin seamlessly integrates with BotSailor, allowing you to use BotSailor for follow-up notifications.

== Screenshots ==
1. **Settings Page** – Configure your webhook URL and other options.
2. **Webhook Notification** – Example of data sent to your webhook when a cart is abandoned.

== Changelog ==
= 1.0.0 =
* Initial release of the WooCommerce Abandoned Cart Webhook Plugin.

== Upgrade Notice ==
= 1.0.0 =
Initial release.

== License ==
This plugin is licensed under the GPL version 2 or later.

== Notes ==
* Make sure your WooCommerce and WordPress installations are updated to avoid any compatibility issues.
* For support, visit https://botsailor.com/resource/support