delphinealamichel
Forum Replies Created
-
Hello,
Thank you for your follow‑up.
Yes, the shop information is fully set up under PDF Invoices > General > Shop information.
All fields are filled correctly (company name, address, email, etc.)
Before reaching a working solution, I went through an extensive troubleshooting process, so I’m sharing all the technical steps I performed to give you full context.Server‑side adjustments (memory and execution limits)
To rule out resource‑related failures, I increased several PHP limits at the hosting level (PlanetHoster):
memory_limitincreased to 526Mmax_execution_timeincreasedmax_input_varsincreased
I confirmed these values were active via phpinfo and through the hosting panel.
Despite these increases, the PDF generation issue persisted, which confirmed that the root cause was not memory‑related.CSS debugging and custom styling
I created a custom template under
/wp-content/uploads/wpo_wcpdf/custom/pdf/and edited thestyle.cssfile to apply my branding.This included:
- Rewriting the table header styling (
thead th) - Applying a custom background color
- Applying a custom text color
- Ensuring all CSS rules use
!importantto override default plugin styles - Testing compatibility with mPDF, which does not support all CSS properties
I also verified that the custom template override was correctly detected by the plugin.
Plugin configuration verification
I double‑checked all settings under:
WooCommerce → PDF Invoices → General → Shop information
Everything is correctly filled:
- Company name
- Address
- Registration number
- Logo
- All required fields
I also verified that the plugin is using the custom template and not the default one.
5. Multiple regeneration tests
After each modification (PHP, CSS, server settings), I regenerated several invoices to isolate the cause of the failure.
Only after fully rewriting the footer and cleaning the template did the PDF finally render correctly.Conclusion
After a long and detailed debugging process involving template cleanup, CSS overrides, server configuration adjustments, and repeated testing, the PDF now generates correctly using a personalized template!
Thank you for your support.
Best regards,
Delphine