﻿=== Siddik DevKit for WooCommerce ===
Contributors: mdabubakkersiddik1
Tags: woocommerce, elementor, gutenberg, products, shop
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.3.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce store tools, Elementor widgets and Gutenberg blocks for theme developers. Product grids, quick view, side cart and more.

== Description ==

**Siddik DevKit for WooCommerce** gives you the building blocks of a modern online store — without locking your theme into a heavy, paid framework.

Whether you build custom WooCommerce themes, client shops, or your own store, this plugin helps you add the features customers expect: product grids, header cart, search, quick view, side cart, wishlist icons, promotional banners, and more. Everything works with **WooCommerce**. Elementor widgets and Gutenberg blocks are **optional** — turn them on only when you need them.

= Who is this plugin for? =

* **Theme developers** who want reusable WooCommerce components
* **Agencies** building client stores with Elementor or the block editor
* **Shop owners** who need practical storefront tools out of the box
* **Anyone** tired of copying the same WooCommerce code into every project

= What can you do with this plugin? =

**Run a better store (core tools)**

* Show a **Quick View** popup so shoppers preview products without leaving the page
* Open an **AJAX side cart** panel when items are added to the cart
* Display **percentage sale badges** (for example `-25% OFF`) on product loops
* Add a **Buy Now** button on single product pages for faster checkout
* Simplify checkout with optional **field tweaks** and an alternative phone field
* Set **custom thank-you messages** for each payment gateway
* Enable **product gallery zoom, lightbox, and slider** support for themes

**Design shop pages with Elementor (optional)**

Drag widgets from the **Siddik DevKit** category in Elementor:

* **WC Products** — product grid, masonry, or carousel with category filter and load more
* **Product Tabs** — tabbed product sections (Featured, Sale, Custom queries)
* **Product Category** — single category card with 5 visual skins
* **Product List** — compact vertical product list
* **Info Banner** — promotional banner with 5 layout styles
* **Header Cart** — cart icon with dropdown or side panel
* **Header Search** — search form, category search, or icon popup
* **My Account** — account icon link
* **Wishlist** — wishlist icon with count (integrates with Woo Smart Wishlist when available)
* **Vertical Menu** — dropdown navigation for shop menus

The **WC Products** widget includes a full **Style** tab — customize cards, images, titles, prices, ratings, buttons, spacing, and colors without writing CSS.

**Build with Gutenberg blocks (included)**

Native blocks under **Siddik DevKit for WooCommerce** with live editor preview and server-side rendering:

* WC Products
* Product Category
* Product List
* Product Tabs
* Info Banner
* Header Cart
* Header Search
* Account
* Wishlist
* Vertical Menu

Gutenberg blocks share the same templates and skins as Elementor, so your shop looks consistent no matter which editor you use.

= Product card skins =

Choose the look that fits your brand:

* **Skin 1 — Modern Card** — clean cards with floating wishlist, quick view, and cart icons
* **Skin 2 — Classic Shop** — bordered shop style with a horizontal action toolbar

Both skins are available in the **WC Products** widget and block.

= Easy settings =

Go to **WooCommerce → Siddik DevKit** to turn individual features on or off:

* Quick View
* AJAX Side Cart
* Percentage Sale Badges
* Buy Now Button
* Checkout Field Tweaks
* Built-in Wishlist

Thank-you messages are configured under **WooCommerce → Settings → Thank You Messages**.

= Privacy and performance =

* No data is sent to external servers
* AJAX runs on your own site only
* Compatible with WooCommerce **HPOS** (custom order tables)
* Plugin settings are removed on uninstall

== Installation ==

**Basic setup**

1. Install and activate [WooCommerce](https://wordpress.org/plugins/woocommerce/).
2. Install and activate **Siddik DevKit for WooCommerce**.
3. Open **WooCommerce → Siddik DevKit** and enable the features you need.
4. (Optional) Set custom thank-you text under **WooCommerce → Settings → Thank You Messages**.

**Using Elementor**

1. Install and activate [Elementor](https://wordpress.org/plugins/elementor/).
2. Edit a page with Elementor.
3. Search for **Siddik DevKit** in the widget panel.
4. Drag widgets such as **WC Products**, **Header Cart**, or **Info Banner** onto your layout.

**Using Gutenberg**

1. Edit a page or template in the block editor.
2. Click **+** to add a block.
3. Open the **Siddik DevKit for WooCommerce** category.
4. Insert blocks like **WC Products** or **Product Tabs** and adjust settings in the sidebar.

== Frequently Asked Questions ==

= Do I need Elementor? =

No. All core WooCommerce tools and Gutenberg blocks work without Elementor. Elementor widgets load only when Elementor is active.

= Do I need coding skills? =

No. Most features are configured from the WordPress admin or block/Elementor settings. Theme developers can still extend templates and hooks when needed.

= Does this work with HPOS (custom order tables)? =

Yes. The plugin declares compatibility with WooCommerce custom order tables.

= Does the plugin call external services? =

No. AJAX requests stay on your site (`admin-ajax.php`) for quick view, wishlist, and related features.

= What data is stored? =

Thank-you message settings are saved in `wp_options` with the `siddwdk_` prefix. Checkout alternative phone is stored as order meta when enabled. Wishlist items use a browser cookie. Uninstall removes `siddwdk_*` options and related transients.

= Does the wishlist require another plugin? =

The built-in wishlist works with a cookie and AJAX — no extra plugin required. The Elementor Wishlist widget can optionally integrate with [Woo Smart Wishlist](https://wordpress.org/plugins/woo-smart-wishlist/) when that plugin is active.

= Can I use Elementor and Gutenberg together? =

Yes. Both use the same underlying templates and styles. Pick the editor that fits each page.

= Is this a theme? =

No. It is a developer toolkit and widget/block library for WooCommerce. Your theme stays in control of the overall design.

== Screenshots ==

1. Thank you messages settings in WooCommerce
2. Elementor widgets in the Siddik DevKit category
3. Elementor WC Products widget - Skin 1 (Modern Card)
4. Elementor WC Products widget - Skin 2 (Classic Shop)
5. Elementor Header Cart widget with live preview
6. Elementor Header Search widget
7. Elementor Info Banner and Product Category widgets
8. Elementor Product Tabs widget with tab repeater
9. Elementor Wishlist widget with product card actions
10. Gutenberg WC Products block - Skin 1 (Modern Card)
11. Gutenberg WC Products block - Skin 2 (Classic Shop)
12. Gutenberg Product Category block with skins
13. Gutenberg Product List block
14. Gutenberg Info Banner block with promotional layout
15. Gutenberg Product Tabs block with featured products
16. Gutenberg Wishlist block with store header blocks

== Changelog ==

= 1.3.6 =
* WordPress.org review: remove woocommerce_style_smallscreen_breakpoint from plugin code; use siddwdk_wc_smallscreen_breakpoint and reuse WC-registered media when available
* Product card cart link uses prefixed siddwdk_loop_add_to_cart_link filter instead of calling WooCommerce filter directly
* Gutenberg/Elementor UI fixes: Info Banner, Wishlist, Product Category skins, widget icons, product-tabs.js

= 1.3.5 =
* WordPress.org review: move WooCommerce smallscreen breakpoint filter into prefixed helper siddwdk_get_wc_smallscreen_media()

= 1.3.4 =
* WordPress.org review: escape SVG icon output with wp_kses() at echo time (Plugin Check compatible)
* Escape WooCommerce loop add-to-cart link HTML via wp_kses with allowed anchor + SVG tags
* Escape woocommerce_style_smallscreen_breakpoint filter value in registered stylesheet media query

= 1.3.3 =
* Remove UTF-8 byte order mark (BOM) from all plugin PHP files, including the main plugin file.

= 1.3.2 =
* Remove UTF-8 byte order mark (BOM) from PHP files to meet WordPress.org plugin standards.

= 1.3.1 =
* WordPress.org review: escape all echoed output (SVG icons, template HTML, menu markup, Elementor attributes)
* Renamed plugin prefix from sdk_dev to siddwdk and namespace from WC_TDK to Siddwdk
* Renamed Gutenberg block namespace from wc-tdk to siddwdk; products block slug wc-products to products
* Migrated legacy sdk_dev_settings option to siddwdk_settings on upgrade

= 1.3.0 =
* Gutenberg blocks aligned with Elementor widgets (shared PHP templates and styles)
* Product Tabs block: tab repeater, per-tab product query, carousel option
* Product Category block: single-category card with skins 1–5 (matches Elementor)
* Product List and Info Banner blocks use Elementor template partials
* Unified product card actions: wishlist, quick view, and cart icon toolbar
* Skin 1 floating circle icons; Skin 2 horizontal pill toolbar
* Live ServerSideRender preview for all Gutenberg blocks in the editor
* Header Search block: default form, category form, and icon popup layouts

= 1.2.0 =
* Admin settings page (WooCommerce → Siddik DevKit) to enable/disable features
* Built-in wishlist (cookie + AJAX) — no extra wishlist plugin required
* Working category filter, load more, carousel, countdown, and tab JS (bundled frontend.js)
* Removed non-functional operator controls; fixed responsive columns and load more button
* Header cart side panel opens built-in side cart; unified Siddik DevKit branding

= 1.1.1 =
* Fixed WP 6.9+ notice: register WooCommerce stylesheet handles before skin CSS dependencies in Elementor

= 1.1.0 =
* WC Products widget: full Elementor Style tab (card, image, sale badge, title, price, rating, buttons, category filter, grid spacing, short description, Skin 2 theme colors)
* Fixed Skin 2 add-to-cart icon button shape and star rating display
* WooCommerce and Dashicons styles always load with product widgets
* WordPress.org cleanup: removed dev scripts, fixed widget docblocks, checkout field PHPCS note, Elementor category icon

= 1.0.9 =
* WordPress.org readiness: sanitization, escaping, and nonce audit fixes
* Removed legacy theme dependencies (organey, tm-ele CSS/hooks)
* Conditional Elementor asset loading per widget
* ABSPATH guards on all template partials
* Wishlist widget safe fallback when Woo Smart Wishlist is inactive
* readme Stable tag synced; side cart debug button removed

= 1.0.8 =
* Quick View: removed hover prefetch, added timeout/error handling, transient cache
* Quick View AJAX reliability fixes (session blocking, output buffering)

= 1.0.6 =
* Fixed Gutenberg WC Products block ($settings undefined, grid CSS in editor)
* Quick View AJAX 500 fix and faster hover button on product cards
* Template params normalized for all widget/block templates

= 1.0.5 =
* Quick View button layout and icon fix on Skin 1 cards

= 1.0.4 =
* WordPress.org coding standards: security, text domain, uninstall routine
* WooCommerce HPOS compatibility declaration
* Fixed widget template path so product skins load correctly
* Renamed Skin 2 assets (removed third-party theme naming)
* Conditional block asset loading; Buy Now and Quick View nonces

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.3.0 =
Gutenberg blocks now match Elementor output; improved product card icon UI on loops.

= 1.1.0 =
Adds Elementor Style controls to the WC Products widget and fixes Skin 2 product card display issues.

= 1.0.9 =
Recommended update before WordPress.org distribution; includes security and coding standards fixes.
