Jump to content

Invoice.tpl - Un-Bold Text - PS 8.2.0


skijump

Recommended Posts

I'd looking to save printer ink. My PS 1.6 shop prints invoices without bold text. My PS 8.2.0 shop prints headings, totals, etc with bold text wasting printer ink.

Any ideas how to edit the invoice.tpl to not have bold text?

Thanks.

Link to comment
Share on other sites

Locate the PDFGenerator.php File:

Navigate to classes/pdf/PDFGenerator.php.

Modify the Font Setting:

Find the line:

php

CopyEdit

$this->font = 'dejavusans';

Replace it with:

php

CopyEdit

$this->font = self::DEFAULT_FONT;

This change ensures that the default font (typically Helvetica) is used, which supports bold styling.

Override the PDF Template (Optional):

To customize the invoice template, copy the invoice.tpl file from the core directory to your theme's PDF folder:

swift

CopyEdit

/themes/your-theme/pdf/invoice.tpl

Modify the template as needed without affecting the core files. Ewonta+1PrestaShop+1

These adjustments should help in reducing bold text and saving printer ink.

Let me know if you need further assistance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...