=== Tably – Smart Product Table for WooCommerce ===
Contributors: devhasib,webtendhq
Tags: product table, woocommerce, quick order, wholesale, add to cart
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display WooCommerce products in an interactive, filterable, sortable table with inline add-to-cart. Perfect for B2B, wholesale, and catalog stores.

== Description ==

**Tably – Smart Product Table for WooCommerce** transforms your store into a fast, scannable product catalog — perfect for B2B buyers, wholesale customers, and anyone who wants to browse and order quickly.

No more clicking into individual product pages. Your customers can search, filter, sort, and add products to cart — all from a single table view.

= ⚡ Key Features =

* **Interactive product table** — Sortable columns, category filter, live search
* **Inline add to cart** — Quantity input + AJAX add to cart, no page reload
* **Flexible shortcode** — `[tably]` with powerful attributes
* **Multiple styles** — Clean, striped, or bordered table designs
* **Mobile responsive** — Works great on phones and tablets
* **Lightweight** — Vanilla JS only, no jQuery required
* **AJAX-powered** — Filter and search without page reloads
* **Theme compatible** — Inherits your theme's button and color styles
* **Accessibility friendly** — ARIA labels, keyboard navigation, screen reader support
* **Translation ready** — Full `.pot` file included
* **WooCommerce HPOS compatible** — Supports High Performance Order Storage

= 🛒 Perfect For =

* **B2B & Wholesale stores** — Bulk ordering made easy
* **Electronics & hardware** — Compare specs at a glance
* **Clothing & apparel** — Browse all variants in one view
* **Grocery & FMCG** — Quick reorder without browsing
* **Auto parts** — Search by part number or SKU

= 📋 Shortcode Usage =

Basic — all products:
`[tably]`

Filter by category:
`[tably category="electronics" limit="15"]`

Custom columns:
`[tably columns="image,name,sku,price,stock,cart"]`

Specific products:
`[tably ids="12,45,89"]`

Sort by price:
`[tably orderby="price" order="asc"]`

Striped style, no toolbar:
`[tably style="striped" search="no" filter="no"]`

= 🔧 Available Columns =

* `image` — Product thumbnail
* `name` — Product name + short description
* `sku` — Product SKU
* `price` — Current price (with sale price)
* `stock` — Stock status / quantity
* `cart` — Quantity input + Add to Cart button

= 🎨 Template Override =

Copy `/templates/table.php` or `/templates/table-row.php` to `/your-theme/tably/` to fully customize the output.

== Installation ==

1. Upload the `tably` folder to `/wp-content/plugins/`
2. Activate the plugin through **Plugins** in WordPress admin
3. Go to **Tably → General** in the WordPress sidebar to configure settings
4. Add `[tably]` shortcode to any page or post

== Frequently Asked Questions ==

= Does it work with variable products? =

Variable products show a "Select options" link. Inline variation selection is available in Tably Pro.

= Will it slow down my site? =

No. Assets only load on pages where the shortcode is used. The JavaScript is vanilla (no jQuery dependency).

= Can I use multiple tables on one page? =

Yes! Each `[tably]` shortcode gets a unique ID and works independently.

= Can I override the templates? =

Yes. Copy `/templates/table.php` to `/your-theme/tably/table.php` and customize freely.

= Is it compatible with WooCommerce HPOS? =

Yes, fully compatible with WooCommerce High Performance Order Storage.

= Does it work with page builders like Elementor or Divi? =

Yes. The `[tably]` shortcode works in any page builder that supports shortcodes.

== Screenshots ==

1. Product table with search, filter, and sort toolbar
2. AJAX add to cart with toast notification
3. Mobile responsive table layout
4. Tably admin settings — Traceify-style dark sidebar
5. Shortcodes reference tab with copy buttons
6. Stats tab showing active tables

== Changelog ==

= 1.0.0 =
* Initial release
* Shortcode `[tably]` with all core features
* AJAX filtering, searching, sorting, and pagination
* AJAX add to cart with toast notification
* Clean / Striped / Bordered table styles
* Mobile responsive layout
* Accessibility-friendly markup (ARIA, keyboard navigation)
* WooCommerce HPOS compatible
* Template override support
* Traceify-style dark sidebar admin UI

== Upgrade Notice ==

= 1.0.0 =
Initial release.
