# QRCraft

<img src="assets/logo.png" alt="QRCraft Logo" width="150">

![WordPress](https://img.shields.io/badge/WordPress-6.4%2B-blue?logo=wordpress)
![WooCommerce](https://img.shields.io/badge/WooCommerce-8.0%2B-purple?logo=woocommerce)
![PHP](https://img.shields.io/badge/PHP-8.0%2B-777BB4?logo=php)
![License](https://img.shields.io/badge/License-GPLv2-green)

**The simplest way to add QR codes to your WooCommerce store. Lightweight, automatic, and hassle-free.**

QRCraft generates unique QR codes for each of your WooCommerce products. When scanned, customers are taken directly to the product page. Perfect for print catalogs, product labels, in-store displays, and marketing materials.

## ✨ Features

- **Automatic Generation** – QR codes are created when products are published or updated
- **Batch Processing** – Uses Action Scheduler to handle thousands of products without server overload
- **Customizable Colors** – Visual color picker for QR code and background colors
- **Multiple Sizes** – Choose from 100px to 300px
- **Error Correction** – Adjustable levels (L, M, Q, H) for different use cases
- **SVG Format** – Perfect scaling at any size with tiny file sizes
- **Bulk Regeneration** – One-click regeneration with progress tracking
- **Clean Footprint** – Minimal, optimized code with no bloat

## 📦 Installation

1. Download the latest release
2. Upload the `qrcraft` folder to `/wp-content/plugins/`
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Go to **WooCommerce → QRCraft** to configure your settings

## 🚀 How It Works

1. Install and activate the plugin
2. Configure your preferred QR code style in the settings
3. QRCraft automatically generates QR codes for all existing and new products
4. View, download, or regenerate QR codes from the Products list or individual product pages

## ⚙️ Requirements

- WordPress 6.4 or higher
- WooCommerce 8.0 or higher
- PHP 8.0 or higher

## 📄 License

This plugin is licensed under the [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html).

## 🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

## 📝 Changelog

### 1.0.0

- Initial release
- Automatic QR generation on product save
- Bulk generation with Action Scheduler
- Color customization with WordPress color picker
- Size and error correction options
- Product list QR code column
- Individual QR code download
- Clean uninstall with optional file deletion
