=== SW6 Connector ===
Contributors: icreativetech
Tags: sw6, shopware connector, shopware api, product sync, category sync
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress with Shopware via API. Display Shopware categories and products in WordPress using shortcodes.

== Description ==
This plugin connect your WordPress site to Shopware via API to fetch and display Shopware products and categories directly on your site.

== Disclaimer ==

This plugin is **not affiliated with, endorsed, or supported by Shopware AG**. "Shopware" is a registered trademark of Shopware AG.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install it via the WordPress Plugin screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. After activation, go to **Settings > Shopware Connector** in the WordPress admin panel.
4. Fill in the required fields:
    - **Shopware API URL**
    - **Shopware Access Key (sw_access_key)**
    - **Choose your preferred Layout View** (1x3 or 2x3)


== Features and Workflow ==

We utilize the existing Shopware API and extend the plugin with a new shortcode that allows:

- Displaying categories and products in custom layouts: 1x3 (single row) or 2x3 (two rows).
- Fetching category and product data from Shopware dynamically.
- Maintaining the original Shopware shop UI style and product filters.
- Clicking on a product redirects the user to the actual product detail page on the Shopware 6 store.

Use shortcodes as below : 

[sw6co_shopware_products value="product number"] - Display products according to the added product numbers. You can add multiple category ids by comma separator.

[sw6co_shopware_categories value="category id"] - Display category according to the added category ids. You can add multiple category ids by comma separator.

[sw6co_shopware_products_by_category value="category id"] - Display product listing by the added category id. You can add only a single category id.

== Breakdown of Functionality ==

**1. Shortcode Integration**  
- Create shortcodes [sw6co_shopware_products_by_category value="category id"], [sw6co_shopware_products value="product number"] and [sw6co_shopware_categories value="category id"].

**2. API Integration**  
- Securely fetch categories and products via Shopware API.

**3. Layout Design**  
- Responsive grid (1x3, 2x3) with Shopware-like styling.

**4. Product Redirection**  
- Clicking a product will take users to the corresponding Shopware 6 product detail page.
    
**5. Filter Support**  
- Filters by properties, consistent with Shopware logic.

== Screenshots ==

1. SW6 plugin admin configuration

2. Display Shopware Products by Product Number

3. Display Shopware Categories by Category ID

4. Display Shopware Products by Category ID

== Changelog ==

= 1.0.2 =
* Minor code improvements
* Plugin released
