Sylius Invoicing Plugin

The Invoicing Plugin provides automated invoice generation and PDF export capabilities for Sylius-based eCommerce systems. It seamlessly integrates into the order lifecycle, offering a standardized and extensible solution for order invoicing.

Key Features

  • Automatic Invoice Generation: Invoices are automatically created when an order reaches a specific state (e.g., created).

  • PDF Invoice Creation: Generates standardized PDF invoice documents using wkhtmltopdf.

  • Customer and Admin Access: Enables invoice PDF download links in both Admin and Shop interfaces.

  • Immutable Invoice Records: Once generated, invoices are stored and remain unchanged, fulfilling compliance and audit requirements.

  • Customizable Storage: Configure where and how invoices are saved on the server.

  • Extensibility: Offers multiple extension points via Symfony events and services.

How It Works

  • The plugin listens to order/payment workflow transitions.

  • When the order reaches the configured state (default: created), an invoice is generated.

  • The PDF is saved and linked to the corresponding order.

  • Customers can download the invoice from their account area (orders grid & order details).

Troubleshooting

  • Invoice not generated: Ensure the order reached the configured state.

  • PDF not created: Check wkhtmltopdf path and permissions.

  • Missing download links: Confirm templates are not overridden incorrectly.

Resources

Last updated

Was this helpful?