=== Gun Made ===
Contributors: bradyk00
Tags: woocommerce, firearms, guns, marketplace, product feed
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to Gun Made - the largest 2A Industry search engine. Your products automatically appear on gunmade.com.

== Description ==

Gun Made is the largest 2A Industry search engine, helping millions of shoppers find guns, ammo, and accessories from trusted dealers across the country.

This plugin connects your WooCommerce store to Gun Made with one click. Enter your email, click connect, and your products start appearing on gunmade.com. No API keys to copy, no redirects, no setup steps.

= Features =

* **One-click connection** - Enter your email and click connect. A read-only API key is created automatically behind the scenes.
* **Automatic product feed** - Your product catalog is synced every 15 minutes. No manual exports or file uploads.
* **Category mapping** - Map your store categories to Gun Made's taxonomy so shoppers find your products when filtering by type (Pistols, Rifles, Ammo, etc.).
* **Store locations** - Add your physical store locations so shoppers can find you in "near me" searches.
* **Zero maintenance** - Once configured, everything updates automatically. Focus on running your business.
* **Read-only access** - Gun Made never modifies your store data. We only read your product catalog.
* **Clean disconnect** - Disconnecting removes the API key and all stored data. No leftovers.

= How It Works =

1. Install and activate the plugin
2. Go to WooCommerce > Gun Made
3. Enter your email and click "Connect to Gun Made"
4. Your products start appearing on gunmade.com within minutes

= Requirements =

* WordPress 5.0 or later
* WooCommerce 5.0 or later
* PHP 7.4 or later
* HTTPS enabled on your store

== Installation ==

1. Download the plugin ZIP file
2. Go to Plugins > Add New > Upload Plugin in your WordPress admin
3. Select the ZIP file and click Install Now
4. Activate the plugin
5. Go to WooCommerce > Gun Made to connect your store

== Frequently Asked Questions ==

= Do I need a Gun Made account? =

No separate account is needed. When you connect through this plugin, your dealer account is created automatically.

= Is my store data safe? =

Yes. Gun Made only requests read-only access to your product catalog. We never modify your store data, orders, or customer information. The API key created by this plugin is visible in WooCommerce > Settings > Advanced > REST API so you can verify its permissions at any time.

= How often does my product feed update? =

Your product feed updates automatically every 15 minutes. Price changes, stock updates, and new products are reflected on gunmade.com within 15 minutes.

= Does it cost anything? =

Please visit [gunmade.com/solutions/dealers](https://www.gunmade.com/solutions/dealers) for current pricing information.

= What if I have multiple store locations? =

Gun Made supports multi-location inventory. You can configure your store locations in the Gun Made dashboard after connecting.

= Can I control which products appear on Gun Made? =

Yes. You can map specific categories and configure your feed settings in the Gun Made dashboard. Products with UPCs will appear by default, and category mapping gives you maximum control over visibility.

= How do I disconnect? =

Go to WooCommerce > Gun Made and click "Disconnect from Gun Made" at the bottom of the page. This removes the API key and clears all connection data.

= What happens to the API key when I disconnect or uninstall? =

The read-only API key created by this plugin is automatically deleted when you disconnect or uninstall the plugin. Nothing is left behind.

== Third Party Services ==

This plugin connects your WooCommerce store to [Gun Made](https://www.gunmade.com), an external product search engine for firearms, ammunition, and accessories.

When you click "Connect to Gun Made", the plugin:

1. Creates a read-only WooCommerce REST API key (visible in WooCommerce > Settings > Advanced > REST API)
2. Sends the following data to Gun Made's servers at `plugins.gunmade.com`:
   * Your store URL
   * Your email address
   * The API key credentials (consumer key and secret, used to read your product catalog)

Once connected, Gun Made's servers periodically read your product catalog via the WooCommerce REST API to generate a product feed displayed on gunmade.com. Gun Made only uses **read-only** access and never modifies your store data.

* [Gun Made Terms of Service](https://www.gunmade.com/terms-of-service/)
* [Gun Made Privacy Policy](https://www.gunmade.com/privacy-policy/)

== Changelog ==

= 1.2.1 =
* Updated plugin branding copy ("2A Industry search engine")

= 1.2.0 =
* Replaced URL-parameter admin notices with transient-based notices for stricter security (no untrusted query-string reads in the admin page render path)
* Removed bundled plugin update checker — WordPress.org delivers updates directly through the admin Updates page
* Updated Terms of Service and Privacy Policy URLs to the correct paths on gunmade.com
* Updated Contributors to the WordPress.org account that owns this submission

= 1.1.0 =
* Auto-generates WooCommerce API key on connect (no more OAuth redirects or manual key entry)
* Cleans up API key on disconnect and uninstall
* Simplified connection flow - one field, one click
* Manual API key entry still available as fallback

= 1.0.0 =
* Initial release
* WooCommerce OAuth connection
* Manual API key connection fallback
* Feed management dashboard link
* HPOS compatibility declared
