=== Shipping Online Tracker for CTT ===
Contributors: cordelimapt
Tags: woocommerce, tracking, portugal, shipping, delivery
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.7.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://www.paypal.com/brunomachadosantos

Easily manage CTT tracking codes for WooCommerce. Adds direct links to the Envios Online portal and tracking buttons for customers.

== Screenshots ==

1. Botão Seguir Encomenda no Painel de Utilizador(Cliente).
2. Botão Seguir e Detalhes do código de rastreio dentro do menu Encomendas no Painel de Utilizador (Cliente).
3. Detalhes e logs de códigos de rastreio dentro da Encomenda (Painel Admin).

== Description ==

**Shipping Online Tracker for CTT** is the definitive solution for WooCommerce stores in Portugal that use the CTT "Envios Online" portal (for users without a formal business contract).

This plugin was designed to simplify the workflow for manual shipments. It allows the store administrator to manage tracking codes with a change log and provides the end customer with an intuitive interface to track their order.

### Key Features:
* **Strategic Shortcut:** Direct button to the CTT Envios Online Portal within each order.
* **Tracking Management:** Dedicated field to insert the object tracking code.
* **Shipping History:** Automatic log of previously entered dates and codes.
* **Professional Customer Area:** Tracking buttons in the order list and account details.
* **Automatic Emails:** Inclusion of a visual tracking block in the "Order Completed" email.
* **HPOS Compatibility:** Fully prepared for WooCommerce High Performance Order Storage.

== Installation ==

1. Upload the `ctt-envios-online` folder to the `/wp-content/plugins/` directory or install the .zip file through the WordPress dashboard.
2. Activate the plugin through the 'Plugins' menu.
3. Go to any WooCommerce order and you will find the new "CTT Shipping" box in the right sidebar.

== Frequently Asked Questions ==

= Does this plugin automatically generate shipping labels? =
No. This plugin is focused on manual shipments (no-contract users), facilitating the organization of tracking codes and communication with the customer.

= Does it work with the new WooCommerce database system (HPOS)? =
Yes, the plugin is 100% compatible with High Performance Order Storage tables.

= Does the customer receive the tracking code by email? =
Yes, as soon as the order is marked as "Completed", the tracking code and the direct link are automatically included in the email sent to the customer.

== Screenshots ==

1. Management box in the administration panel with history log.
2. Tracking button in the customer's "My Account" area.
3. Tracking information block in the order details.

== Upgrade Notice ==

= 1.7.3 =
This update adds full support for WooCommerce HPOS and improves security through better data sanitization. Recommended for all users.

== Changelog ==

= 1.7.3 =
* Official HPOS (High Performance Order Storage) compatibility implementation.
* Improved data sanitization for repository security standards.
* Added welcome notice after activation.

= 1.0.0 =
* Initial release.