=== MadlabDS Easy Product Sync ===
Contributors: Madlab DS
Tags: woocommerce, automation, green-api, productivity, mobile-sync
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish simple WooCommerce products directly from mobile messaging. The fastest way to sync your high-rotation inventory using Green-API.

== Description ==

Publish simple WooCommerce products directly from mobile messaging. The fastest way to sync your high-rotation inventory using Green-API.

MadlabDS Easy Product Sync is designed for store managers who need high-speed inventory rotation. It allows you to snap a photo, add a 4-line caption, and publish it immediately to your store via mobile messaging.

**This plugin relies on a third-party service, [Green-API](https://green-api.com), to act as a gateway between your device and your WordPress site.**

= 🛠️ Service Disclosure =
* **Service Used:** Green-API (https://green-api.com)
* **Purpose:** Required to receive webhook events from mobile messaging and send automated confirmation replies to the administrator.
* **Terms & Privacy:** Consult the Green-API website for their specific policies regarding data handling.

= 💎 Lite vs PRO =
MadlabDS Easy Product Sync is the free version focused on **Simple Products**. For advanced features like **Product Variations (Size/Color)**, **Photo Galleries**, and **Stock Rules**, please visit [MadLab DS Easy Product Sync](https://madlabds.com/easyproductsync).

== Installation ==

= Step 1: Green-API Setup =
1. Create an account at [Green-API](https://green-api.com).
2. Create an instance and link your device by scanning the QR code.
3. Locate your **Instance ID**, **API Host**, and **API Token** in the Green-API console (Go to the Green-API Console / Service Methods / GetChats and find your Group ID in the response json).

= Step 2: Plugin Configuration =
1. Upload the `madlabds-easy-product-sync` folder to `/wp-content/plugins/` or install via WordPress.
2. Activate the plugin.
3. Go to the **Product Sync** menu in your WordPress dashboard.
4. Enter your Green-API credentials: **Instance ID**, **API Host**, and **API Token**.
5. Enter your **Group ID** (The unique ID of the group where you will send the products).
6. Click **Save Changes**.

= Step 3: Webhook Link =
1. Copy the **Webhook URL** generated in the plugin settings page.
2. Go to your Green-API console -> Settings -> Webhooks.
3. Paste the URL and ensure "Incoming Messages" is enabled.

== Frequently Asked Questions ==

= How do I create a product? =
Send a PHOTO to your authorized group with this 4-line caption:
1. Product Name
2. Category
3. Price
4. SKU

= Which commands are available? =
* **STOCK [SKU] [QTY]**: Updates product inventory instantly (e.g., STOCK X51 12).
* **DELETE [SKU]**: Removes the product from WooCommerce.
* **HELP**: Sends the instruction manual back to your admin chat.

== Screenshots ==
1. Settings
2. Webhook URL and debugger
3. Create an Instance in GreenAPI and locate your credentials
4. Edit your Webhook url
5. Webhook URL location
6. Locate your group's credentials here API/Service Methods/GetContacts

== Changelog ==

= 1.0.1 =
* Initial Version for Madlab DS Easy Product Sync