=== RomCommerce ===
Contributors: rwky
Tags: woocommerce, romania, checkout, gdpr, invoicing
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.2
Requires Plugins: woocommerce
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A modular Romanian commerce layer for WooCommerce: compliance helpers, localized checkout, and Romanian-market essentials in one plugin.

== Description ==

RomCommerce is a modular set of tools that adapt WooCommerce for the Romanian market. Instead of installing a dozen small single-purpose plugins, you enable only the modules you need from one coherent system. Every module is optional and every module is fully functional in this free version.

**Important:** RomCommerce provides tools that *help* you meet Romanian e-commerce obligations. It does not, and cannot, guarantee that your shop is legally compliant. That always depends on how your shop is set up and operated. Treat the compliance-related modules as assistance, not as a certificate.

= What's included =

**Compliance & legal helpers**

* **SAL pictogram**: displays the official ANPC SAL pictogram on your homepage, linking to the SAL dispute-resolution platform.
* **Price history (Omnibus)**: logs every price change and shows the lowest price of the previous 30 days next to a sale price, to support the EU Omnibus Directive.
* **PF/PJ billing fields**: individual-vs-company billing fields at checkout, written where the Romanian invoicing-plugin ecosystem (SmartBill, Oblio, EasySales) reads them.
* **VAT ID validation**: CUI/CIF format and checksum validation at checkout.
* **Related-orders finder (MAOF)**: flags a customer's possibly-related orders and duplicate active orders for staff review. Decision support only: it never cancels, blocks, or blacklists anyone.

**Checkout & billing**

* **Counties & postcodes**: Romanian county data plus 6-digit postcode validation at checkout.
* **Hide voucher at checkout**: removes the coupon field so shoppers don't leave to hunt for a code.
* **Multiple delivery addresses**: lets customers save more than one delivery address on their account.

**Storefront & merchandising**

* **Free shipping bar**: a "spend X more for free shipping" progress indicator.
* **Sale category sync**: keeps a chosen product category populated with everything currently on sale.
* **Related products**: rule-based control over the related-products block.
* **Multi-product review page**: one page where a customer reviews every product from a past order at once.
* **WhatsApp / contact FAB**: a floating multi-channel contact button with a contextual WhatsApp link.
* **Clear cart**: a one-click "empty cart" action.

= RomCommerce Pro =

A separate RomCommerce Pro plugin (sold separately, not installed from here) adds advanced modules such as live VIES VAT validation, phone and email validation, postcode-based address autocomplete, one-click order confirmation, pickup workflows, and a compliance checklist. RomCommerce Lite is complete on its own. Pro is optional.

= External services =

RomCommerce (this free plugin) makes **no external network requests** and sends **no data to any third party**. The SAL pictogram and the WhatsApp contact button are ordinary outbound links your visitors choose to click; the plugin itself does not transmit anything.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the `romcommerce` folder to `/wp-content/plugins/`, or install it from the Plugins screen.
3. Activate RomCommerce through the **Plugins** screen.
4. Open the **RomCommerce** menu in wp-admin and enable the modules you want, configuring each from its settings pane.

== Frequently Asked Questions ==

= Does this make my shop legally compliant? =

No. RomCommerce gives you tools that help you meet Romanian e-commerce requirements (the SAL pictogram, Omnibus price history, PF/PJ billing, and more), but legal compliance always depends on your specific shop and how you run it. The plugin assists; it does not certify.

= Do I need WooCommerce? =

Yes. RomCommerce is a WooCommerce extension and will not run without it.

= Is everything really free? =

Yes. Every module in this plugin is fully functional with no license key, trial period, or usage limit. RomCommerce Pro is a separate, optional plugin.

= Does the plugin send my data anywhere? =

No. This free version makes no external requests and integrates with no third-party service.

= Is it compatible with High-Performance Order Storage (HPOS)? =

Yes. RomCommerce declares HPOS compatibility and accesses orders only through WooCommerce's CRUD layer, so it works with both HPOS and the legacy order storage.

== Screenshots ==

1. The RomCommerce admin panel with modules grouped by category.
2. A module settings pane.
3. The "lowest price in the last 30 days" Omnibus notice on a product page.
4. The floating multi-channel contact button.

== Changelog ==

= 0.2 =
* First public release on WordPress.org.

= 0.1.0 =
* Initial release with the Lite module set: SAL pictogram, price history (Omnibus), PF/PJ billing, VAT ID validation, related-orders finder, counties & postcodes, hide voucher, multiple delivery addresses, free shipping bar, sale category sync, related products, multi-product review page, WhatsApp/contact FAB, and clear cart.

== Upgrade Notice ==

= 0.2 =
First public release on WordPress.org.
