=== Simple Fatoora ===
Tags: zatca, vat, qr-code, woocommerce, phase-2
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.9.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple Fatoora adds ZATCA Phase 2 e-invoicing with QR codes to WooCommerce for B2C and B2B VAT invoices.

== Description ==

Simple Fatoora helps WooCommerce stores comply with **ZATCA Phase 1 and Phase 2** directly from WordPress. The plugin generates compliant e-invoices with **QR codes**, supports both **Simplified Tax Invoices (B2C)** and **Standard VAT Invoices (B2B)**, and gives merchants a guided workflow for setup, invoicing, and compliance.

The plugin uses the Simple Fatoora service to generate and submit compliant invoices. Merchants can create an account, sign in, or connect with an API key from inside the plugin dashboard, manage invoice settings, complete important **ZATCA Phase 2** steps, handle company invoice requests, and generate refund credit notes without leaving WordPress.

A **3-day trial** is available after registration so stores can explore the workflow before subscribing to a membership.

### **Why Simple Fatoora?**
- Authorized ZATCA e-invoicing solution provider
- Supports **ZATCA Phase 1 and Phase 2**
- Generates invoices with **ZATCA-compliant QR codes**
- Supports both **Simplified Tax Invoices (B2C)** and **Standard VAT Invoices (B2B)**
- Lets customers request company / VAT invoices during WooCommerce checkout
- Lets merchants manage setup, invoicing, memberships, and key compliance steps from WordPress
- Supports refund credit notes
- Includes a **3-day trial** after registration

### **Key Features**
- **ZATCA Phase 1 and Phase 2** support for WooCommerce
- Automatic e-invoice generation with **QR codes**
- Support for **Simplified Tax Invoices (B2C)** and **Standard VAT Invoices (B2B)**
- Company / VAT invoice request at WooCommerce checkout
- Manual invoice generation from the WooCommerce order screen
- Refund credit note support
- Guided **ZATCA Phase 2** workflow from within WordPress
- Create an account, sign in, or connect with API key inside the plugin
- Membership and payment management from the plugin dashboard
- Invoice details and QR code display in emails and order details
- Arabic and English interface support

---

== Installation ==

1. Install the plugin from the WordPress Plugins menu or upload it to `/wp-content/plugins/`.
2. Activate the plugin.
3. Navigate to **WordPress Admin → Simple Fatoora**.
4. Create a Simple Fatoora account, sign in, or connect using your API key.
5. Configure your invoice settings, checkout options, and auto-generation trigger.
6. Complete **ZATCA Phase 2** steps from the plugin dashboard when needed.
7. Save settings and start generating compliant WooCommerce invoices with **QR codes**.

---

== Frequently Asked Questions ==

= What does the plugin help with in ZATCA Phase 1 and Phase 2? =
The plugin helps WooCommerce stores manage invoice generation, **QR codes**, company invoice workflows, and key **ZATCA Phase 2** connection steps directly from WordPress through the Simple Fatoora service.

= Does the plugin generate ZATCA-compliant QR codes? =
Yes. The plugin generates **ZATCA-compliant QR codes** for supported invoices and can display them in WooCommerce customer emails, order details, and compatible PDF invoices.

= Does WooCommerce checkout support both B2C and B2B invoices? =
Yes. WooCommerce checkout supports both **Simplified Tax Invoices (B2C)** for regular customers and **Standard VAT Invoices (B2B)** for companies.

= Can customers request a company / VAT invoice during checkout? =
Yes. Customers can request a company invoice during checkout by entering their company name and VAT number, and the order can then be processed as a VAT invoice.

= Can I manage setup and invoicing from inside WordPress? =
Yes. You can create an account, sign in, connect your store, manage invoice settings, handle memberships, complete important **ZATCA Phase 2** steps, and work with invoices from the plugin dashboard.

= Is there a trial available? =
Yes. A **3-day trial** is available after registration so you can explore the workflow before subscribing to a membership.

= Does the plugin support refund credit notes? =
Yes. The plugin supports refund credit notes for WooCommerce refund workflows.

= Do I need a Simple Fatoora account? =
Yes. You can create an account directly inside the plugin, sign in, or connect using your API key. The plugin uses the Simple Fatoora service to process compliant invoices and **QR codes**.

= Can I generate invoices automatically and manually? =
Yes. You can configure automatic generation based on a WooCommerce order status, and you can also generate invoices manually from the order screen.

= Does the plugin support Arabic and English? =
Yes. The plugin interface supports both Arabic and English.

---

== Screenshots ==

1. Connect your store to ZATCA phase 2.
2. Simple Fatoora App.
3. Connect your WooCommerce.
4. ZATCA phase 2 integration.

== Changelog ==

= 1.9.2 =
* Added PDF display preferences for showing customer information on simplified invoices.
* Added a PDF display preference for showing or hiding item IDs in invoice PDFs.