=== Creatsign Commerce ===
Contributors: creatsign
Tags: ecommerce, whatsapp, product-catalog, orders, rest-api
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.3.1
License: GPLv2 or later

Creatsign Commerce is a standalone WordPress commerce foundation with a custom product catalogue, WhatsApp-first order flow, order tracking, dashboard analytics, REST API, and optional WooCommerce button replacement.

== Main Features ==

* Custom product catalogue with SKU, regular/sale price, stock status, stock quantity, categories, tags, featured image, direct external image URL, rich short descriptions, full descriptions, and feature bullets.
* WhatsApp-first ordering: product Add to Cart actions are replaced by a configurable WhatsApp order button.
* Indonesian phone number normalization (for example 0812... becomes 62812... when country code is 62).
* Editable WhatsApp message template with {store_name}, {product_name}, {sku}, {price}, {quantity}, and {product_url} variables.
* Order/lead tracking when visitors click the WhatsApp button.
* Order management with statuses: WhatsApp Clicked, Contacted, Confirmed, Processing, Completed, Cancelled.
* Admin dashboard with order and confirmed-revenue summaries.
* Optional WooCommerce bridge that replaces WooCommerce loop and single-product Add to Cart controls.
* REST API for product listing, WhatsApp click tracking, and administrator order listing.
* Responsive storefront cards and admin pages.
* Native Elementor widgets: Creatsign Products (product catalogue grid) and Creatsign Single Product (individual product block).
* Elementor content controls for product count, columns, category, sort order, rich catalogue introduction, description visibility/length, and feature bullets.
* Product descriptions support visual formatting, headings, paragraphs, lists, safe links, and a separate full description from the main product editor.
* Elementor Single Product supports full/short description modes, feature-list visibility, and description typography/color controls.
* Product images can be loaded directly from an HTTPS/HTTP image URL. External URL images take priority over the Media Library featured image; if the URL field is empty, the featured image is used.
* Elementor Single Product widget supports an optional per-widget image URL override.
* Elementor style controls for product card background, border, spacing, title, price, and WhatsApp button.

== Shortcodes ==

[creatsign_products]
[creatsign_products per_page="12" columns="3"]
[creatsign_products category="aksesoris" per_page="8" columns="4"]
[creatsign_products show_description="1" description_words="24" show_features="1"]
[creatsign_product id="123"]
[creatsign_product id="123" image_url="https://example.com/photo.jpg"]
[creatsign_product id="123" description_mode="full" show_features="1"]

== REST API ==

GET /wp-json/creatsign/v1/products?per_page=12&page=1
POST /wp-json/creatsign/v1/whatsapp-order (requires X-CC-Nonce generated on the storefront)
GET /wp-json/creatsign/v1/orders (administrator capability required)

== Installation ==

1. Upload the creatsign-commerce.zip file via Plugins > Add New > Upload Plugin.
2. Activate Creatsign Commerce.
3. Open Creatsign Commerce > WhatsApp & Pengaturan.
4. Enter the store WhatsApp number and save settings.
5. Add products from Creatsign Commerce > Produk. In the product editor, enter a direct image URL in **URL Foto Produk (Opsional)**; use a direct JPG, PNG, WebP, or GIF image URL. This URL takes priority over the featured image.
6. To use Elementor, edit a page with Elementor and search the widget panel for **Creatsign Products** or **Creatsign Single Product** under the **Creatsign Commerce** category.
7. Drag **Creatsign Products** onto the page to display the catalogue. Configure the product count, columns, category, heading, and styling in the widget panel. Use **Creatsign Single Product** to display one selected product.
8. Write the short description with the visual editor in the product data panel, add one feature per line in **Keunggulan / Fitur Produk**, and use the main WordPress editor for the full product description.
9. Shortcodes remain available: [creatsign_products] and [creatsign_product id="123"].

If WooCommerce is already active, enable the WooCommerce button replacement option under Creatsign Commerce > WhatsApp & Pengaturan.

== Important Notes ==

* Creatsign Commerce is independent and does not require WooCommerce.
* The optional WooCommerce bridge uses existing WooCommerce product data; it does not delete or modify WooCommerce products.
* WhatsApp conversations and payments are not read or confirmed automatically. Staff update order statuses in the Creatsign Commerce dashboard.
* The initial WhatsApp order flow records a product and quantity when the visitor clicks the button. This version is a WhatsApp-first catalogue and lead/order workflow, not a full payment, shipping-label, tax, subscription, or multi-vendor platform.
* Data is preserved on plugin uninstall.

== Changelog ==

= 1.3.1 =
* Redesain widget produk tunggal Elementor dengan layout dua kolom yang responsif.
* Tambahkan kartu harga, dua tombol WhatsApp, kartu profil toko, kategori, dan tanggal pembaruan produk.
* Tambahkan pengaturan lokasi toko opsional.
* Sinkronkan kuantitas ke kedua tombol WhatsApp.

= 1.3.0 =
* Deskripsi singkat produk kini menggunakan editor visual dengan format teks, tautan, dan daftar.
* Menambahkan daftar keunggulan produk berbasis baris.
* Widget Elementor mendukung pilihan deskripsi singkat/lengkap, tampil/sembunyi deskripsi, panjang ringkasan, dan tampilan keunggulan.
* Menambahkan pengaturan warna dan tipografi deskripsi di Elementor.
* Endpoint REST produk menyediakan deskripsi singkat, deskripsi lengkap, dan fitur produk.



= 1.2.0 =
* Added a product image URL field to the product editor.
* Added safe HTTP/HTTPS URL validation and URL-first image rendering with Media Library fallback.
* Added optional image URL override to the Elementor Single Product widget.
* Added product image URL to the public products REST response.

= 1.1.0 =
* Added native Elementor widget category: Creatsign Commerce.
* Added Creatsign Products widget for product catalogue grids.
* Added Creatsign Single Product widget for an individual selected product.
* Added Elementor controls for catalogue content, query settings, and card/button styling.
* Kept existing shortcodes and optional WooCommerce integration available.
