Alegra Invoicing for WooCommerce

Description

Automate your invoicing workflow with Alegra. This plugin adds identification fields to your WooCommerce checkout so Alegra can issue compliant invoices automatically after each sale.

How does it work?

  1. The plugin adds document number and document type fields to your checkout.
  2. You connect WooCommerce from your Alegra account.
  3. Alegra receives the order data and generates the invoice automatically.

Key features

  • Compatible: Works with both classic WooCommerce checkout and WooCommerce Blocks.
  • Secure: Processing happens in Alegra, without adding heavy tasks to your web server.
  • Configurable: Customize the document number label and choose whether the fields are required.
  • Mexico CFDI 4.0: stores based in Mexico also capture the buyer’s tax regime, tax zip code and CFDI use, and validate the RFC, so the invoice can be stamped in the buyer’s name.

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install it from the WordPress plugins screen.
  2. Activate the plugin from the Plugins screen in WordPress.
  3. Go to WooCommerce > Settings > General and find the Alegra - Electronic Invoicing section.
  4. Configure the document number label, document type label, and whether the fields are required.
  5. Sign in to your Alegra account, open Marketplace or Integrations, find WooCommerce, and follow the connection steps.

FAQ

Does this plugin issue invoices directly from WordPress?

No. The plugin prepares your store to capture the tax information required for invoicing. Invoice issuance and accounting happen automatically in your Alegra account.

Does it work in my country?

The integration is primarily designed to support Mexico (SAT) and Colombia (DIAN), but you can use the checkout field in any country available in Alegra.

I installed the plugin, why do I not see invoices yet?

Installing the plugin is only the first step. To see invoices, go to your Alegra account and complete the WooCommerce connection to activate synchronization.

Reviews

July 10, 2026
Soy usuario activo de woocommerce y alegra y me parece genial que estén creando esta integración!! gracias.Quiero saber ¿en qué momento se genera la factura automática?Pues ya hice varias pruebas y no me sale. Sería genial que en los ajustes uno pudiera elegir en qué estado del pedido generar la factura. Quedo atentaaa 🙂
Read all 1 review

Contributors & Developers

“Alegra Invoicing for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

“Alegra Invoicing for WooCommerce” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Alegra Invoicing for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • New: stores based in Mexico capture the buyer’s tax regime (c_RegimenFiscal), tax zip code and CFDI use (c_UsoCFDI) on the classic and block checkout, so Alegra can stamp the CFDI 4.0 in the buyer’s name.
  • New: the tax fields are optional. If the buyer fills in any of them, the checkout validates the RFC format and date, and that the tax regime matches a legal entity (12 characters) or an individual (13 characters). Leaving them empty never blocks a purchase.
  • Change: buyers without an RFC, or with the generic RFC, keep being invoiced to “Público en General”.

1.0.3

  • Fix: the classic (shortcode) checkout now saves the customer document on the order while WooCommerce creates it, so it is stored in a single write on stores with or without High-Performance Order Storage (HPOS).

1.0.2

  • Fix: the customer document is now saved and sent correctly on stores using High-Performance Order Storage (HPOS), preventing orders from being invoiced to “Consumidor final”.
  • Compatibility: declared support for WooCommerce High-Performance Order Storage (custom order tables).

1.0.1

  • Fix: document fields now also render on the classic (shortcode) checkout, not only on WooCommerce Blocks.
  • Fix: document data captured on the block checkout is now sent correctly to Alegra.
  • Change: document type options are now shown in Spanish (Colombia and Mexico).
  • New: added the “Permiso especial de permanencia (PEP)” document type for Colombia.

1.0.0

  • Initial public release.
  • Support for document capture in WooCommerce Blocks and classic checkout.
  • Settings integration in WooCommerce general settings.