=== Smart Order Notes by Crafely ===
Contributors: crafely, alaminit
Tags: woocommerce, order notes, templates, store, notes
Requires at least: 5.0
Tested up to: 6.8.2
Requires PHP: 7.4
Stable tag: 1.0.0
WC requires at least: 3.0
WC tested up to: 8.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Streamline WooCommerce order management with reusable, one-click order note templates.

== Description ==

**Smart Order Notes by Crafely** is a simple yet powerful WooCommerce extension that helps store admins save time by using reusable order note templates.
No more typing the same messages again and again—just select a template and insert it instantly.

= 🚀 Features =

* **Reusable Templates** – Create and manage unlimited note templates.
* **One-Click Insert** – Quickly add notes to any WooCommerce order.
* **Private or Customer Notes** – Choose whether a note is internal or sent to the customer.
* **Preview Before Adding** – See template content before inserting.
* **Smart Note Type** – Automatically applies the right type (private or customer).
* **Clean & Lightweight** – Simple interface that blends with WooCommerce.
* **HPOS Ready** – Fully compatible with WooCommerce High-Performance Order Storage.
* **Access Control** – Works with WooCommerce roles and permissions.
* **Translation Ready** – Easily translate into any language.


= 👥 Who Is It For? =

* **Store Owners & Managers** – Speed up order processing.
* **Support Teams** – Keep customer communication consistent.
* **Busy Shops** – Save hours when handling large volumes of orders.
* **Multi-Admin Stores** – Ensure all staff use approved note wording.


= 📦 Included Templates =

The plugin comes with **12 ready-made templates**, such as:

- Order Shipped (Customer)
- Payment Received (Private)
- Order Delayed (Customer)
- Refund Processed (Customer)
- Customer Contacted (Private)
- Order Completed (Customer)
…and more.

You can use these as-is or customize them to fit your store’s tone.

= 🛠 How It Works =

1. **Create Templates** – Go to *WooCommerce > Order Notes* and add your templates.
2. **Set Note Type** – Choose *Private* (internal only) or *Customer* (sends email).
3. **Apply to Orders** – Select a template when viewing any WooCommerce order.
4. **Insert with One Click** – The note is added instantly, ready to save or send.


== Installation ==

= Automatic Installation =

1. Login to your WordPress admin panel
2. Navigate to Plugins > Add New
3. Search for "Smart Order Notes by Crafely"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin zip file
2. Login to your WordPress admin panel
3. Navigate to Plugins > Add New > Upload Plugin
4. Choose the downloaded zip file and click "Install Now"
5. Activate the plugin

= Requirements =

* WordPress 5.0 or higher
* WooCommerce 3.0 or higher
* PHP 7.4 or higher
* User with `manage_woocommerce` capability

== Frequently Asked Questions ==

= Do I need WooCommerce for this plugin to work? =

Yes, Smart Order Notes by Crafely is specifically designed for WooCommerce and requires it to be installed and activated.

= Can I create my own custom templates? =

Absolutely! You can create unlimited custom templates through WooCommerce > Order Notes in your admin dashboard.

= Will templates work with the new WooCommerce order screens? =

Yes, the plugin is fully compatible with both legacy WooCommerce order screens and the new High-Performance Order Storage (HPOS) system.

= Can I edit the predefined templates? =

Yes, all predefined templates can be edited, deleted, or customized to match your store's communication style.

= Do customer notes automatically send emails? =

When you select "Customer Note" and use "Insert & Send", the note will be added to the order and trigger WooCommerce's standard customer notification email.

= Is the plugin translation ready? =

Yes, the plugin is fully translatable. All strings are wrapped in translation functions and a POT file is included.

= Does this plugin slow down my site? =

No, Smart Order Notes by Crafely is admin-only and has zero impact on your frontend performance. Assets are only loaded on relevant admin pages.

= Can I bulk apply templates to multiple orders? =

Currently, templates must be applied individually to orders. Bulk functionality may be added in future versions.

= What user roles can use this plugin? =

Any user with the `manage_woocommerce` capability can create and manage templates. Users with `edit_shop_orders` capability can use templates on order pages.

= Does this work with custom order statuses? =

Yes, the plugin works with any order status. Templates can be used regardless of the order's current status.

== Screenshots ==

1. **Template Management** - Clean interface for creating and managing note templates
2. **Order Integration** - Template selector appears in order sidebar for quick access

== Changelog ==

= 1.0.0 =
* Initial release
* Template management system with create, edit, delete functionality
* WooCommerce order page integration with sidebar metabox
* Support for both private and customer note types
* Template preview functionality
* Auto-selection of note types based on template defaults
* 12 professionally written predefined templates
* Full HPOS (High-Performance Order Storage) compatibility
* Responsive design for all device sizes
* Accessibility features with keyboard navigation
* Translation ready with complete internationalization
* Security features with nonce verification and capability checks
* Performance optimized with minimal resource usage

== Upgrade Notice ==

= 1.0.0 =
Initial release of Smart Order Notes by Crafely. Install now to streamline your WooCommerce order management with reusable note templates.
