v9x Advanced Invoice Builder and Custom Number by Globo Jsc Modified by RicRey V1.3.2

ricrey

Active member
Elite
XNullUser
Joined
Feb 8, 2022
Messages
79
Reaction score
255
Points
33
NullCash
2,023

Advanced Invoice Builder and Custom Number


Custom invoice PDF template on Prestashop module


Prestashop automatic generate PDF Invoice and send to customer by default template. But it is totally difficult for someone who are not developer or designer to custom Prestashop invoice template. This is why we released the module - Advanced PDF Builder. The Prestashop modules allows you to modify invoice without any technical experience. Because you can edit by editor.

Fully customizable​


In addition to a number of default settings (including a custom header/logo) and several layout fields that you can use out of the box, the plugin contains HTML/CSS based templates that allow for customization & full control over the PDF output. Copy the templates to your theme folder and you don't have to worry that your customizations will be overwritten when you update the plugin.

Modification Prestashop PDF Invoice, Delivery are never easier.​


You can add your free text, your company details, your term & condition… to Invoice & Delivery PDF. If your data is dynamic value, you can use variables. For example: invoice number, product list, total price, customer information ... You are saved a lot time with the Prestashop custom PDF invoice module.


1763057982027.png


1763058002379.png




NOTE:
This module is incredible; it even has QR code support. Unfortunately, the developer no longer works on PrestaShop, so there haven't been any updates since 2021 (at the latest, PrestaShop 1.7).

However, I, RicRey, have modified and updated the module for my personal use so that it works perfectly on PrestaShop 9 with PHP 8.4. I'm sharing this so everyone can enjoy this module. I've only tested it on PrestaShop 9, although in theory it should work on PrestaShop 8 as well.


Changed Log:


[v1.3.2] November 2025 ------------------------------------- (by RicRey)
[Compat][PS 8/9]
- Reemplazado el uso eliminado de `Tools::getBrightness()` por helpers internos
`computeBrightness()` + `getReadableTextColor()` en los overrides de factura.
- Eliminado el uso directo de `_PS_PRICE_COMPUTE_PRECISION_` (no definido en PS9) y
añadido fallback seguro basado en `PS_PRICE_DISPLAY_PRECISION`.
- Fallback de ruta para imágenes de producto en PDFs cuando la constante de
imágenes no está disponible (define condicional a `_PS_PROD_IMG_DIR_`).

[Fix]
- Factura PDF en FO/BO vuelve a renderizar sin fatales (stack `PDF->render()`).
- Miniaturas de producto en PDF: comprobación de existencia y regeneración
consistente (evita warnings/dimensiones incorrectas).
- Normalización robusta de colores: soporta `#rgb`, `#rrggbb`, `rgb()`, `rgba()` y
palabras clave básicas (`black`, `white`).

[Changed]
- `AdminGwadvancedinvoiceaboutController`: meta title y strings usando traductor
compatible con PS8/9; toolbar y media conservadas.
- Sincronización de los dos overrides `HTMLTemplateInvoice` (global y del módulo)
para evitar divergencias en futuras actualizaciones.
- Limpieza general de llamadas legacy en vistas/admin (form/tabs) para evitar
notices con PHP 8.1/8.2/8.3.

[Docs]
- CHANGELOG actualizado; notas de actualización y créditos.

Archivos principales modificados
- `modules/gwadvancedinvoice/gwadvancedinvoice.php`
- `modules/gwadvancedinvoice/controllers/admin/AdminGwadvancedinvoiceaboutController.php`
- `modules/gwadvancedinvoice/controllers/admin/AdminGwadvancedinvoiceconfigController.php`
- `modules/gwadvancedinvoice/controllers/admin/AdminGwadvancedinvoicetemplateController.php`
- `modules/gwadvancedinvoice/override/classes/pdf/HTMLTemplateInvoice.php`
- `override/classes/pdf/HTMLTemplateInvoice.php`
- `modules/gwadvancedinvoice/views/templates/admin/config/form.tpl`
- `modules/gwadvancedinvoice/views/templates/admin/config/tabs.tpl`
- `modules/gwadvancedinvoice/views/templates/admin/helpers/view/admin.tpl`
- `modules/gwadvancedinvoice/views/templates/admin/tpltemplates/base/tax-tab.tpl`
- (y TPLs de `tpltemplates/customize/*/header.tpl`, `footer.tpl`, `template.tpl`,
`styles.tpl`, `product_list.tpl` donde aplica)

Notas de actualización
- Vaciar caché: Back Office → Parámetros avanzados → Rendimiento → **Vaciar caché**.
- Si hay overrides locales adicionales de `HTMLTemplateInvoice`, aplicar el mismo
helper de brillo/precisión para mantener compatibilidad.
- Probar generación de factura desde FO y desde BO (Acciones de pedido → Ver factura).

Créditos

- Implementación y ajustes por **RicRey**.
 

Attachments

  • gwadvancedinvoice1.3.2-by-RicRey.zip
    3.1 MB · Views: 34

nojusri

Active member
XNullUser
Joined
Jan 29, 2024
Messages
325
Reaction score
51
Points
28
Location
Lietuva
NullCash
0
Its worked, Thank you very much for sharing this Module
 

mandy

Well-known member
Master
Diamond
Elite
Joined
Jul 8, 2019
Messages
1,087
Reaction score
675
Points
113
NullCash
32
great thanbks for sharing this module - just what I was wanting
 

uko

Member
XNullUser
Joined
Apr 14, 2021
Messages
825
Reaction score
12
Points
18
NullCash
23
great thanbks for sharing this module - just what I was wanting
 

4ngeluxpunk

Active member
XNullUser
Joined
Feb 16, 2020
Messages
1,019
Reaction score
1
Points
38
NullCash
473
Thank you very much for sharing this great module!!
 

ricrey

Active member
Elite
XNullUser
Joined
Feb 8, 2022
Messages
79
Reaction score
255
Points
33
NullCash
2,023
Bonjour, ce module fonctionne-t-il également avec la version 9 ?

It works perfectly in version 9, as I specifically updated it to use in my store with Prestashop 9 and PHP 8.4
 

Mikael

Active member
XNullUser
Joined
Jan 7, 2022
Messages
230
Reaction score
32
Points
28
NullCash
8
Thank you for sharing this module...
 

vivozivo

Well-known member
Master
Diamond
Elite
Joined
Sep 24, 2019
Messages
1,533
Reaction score
991
Points
113
NullCash
1,114
Thank you for sharing this module...and thank you for your effort to share this with this community
 

Pricefee

Active member
XNullUser
Joined
Jan 20, 2020
Messages
784
Reaction score
62
Points
28
NullCash
74
Its worked, Thank you very much for sharing this Module
 

FloverLion

Well-known member
Diamond
Elite
XNullUser
Joined
Sep 30, 2022
Messages
1,172
Reaction score
258
Points
83
NullCash
508
Thanks alot nice module nice share it.
 

unique

Well-known member
Diamond
Elite
XNullUser
Joined
Dec 12, 2020
Messages
3,048
Reaction score
493
Points
83
NullCash
922
Its worked, Thank you very much for sharing this Module
 
Top