Guide

PDF

Get the add-on here.

Enabling the feature

To enable the PDF export feature, go to Product Configurator > Settings > Save your design options, and enable the setting "User can save the configuration as PDF"

Quote request PDF

With quote requests, the add-on can also make a PDF of each quote: your shop's name, logo and address, the quote reference and date, the customer's details, your message, the configured product with its picture and choices, and the total.

Choose where it goes in Product Configurator > Settings > Save your design > Quote request PDF:

  • None.
  • Attached to the quote you send: the quote email carries the PDF, and the customer can download it from their request page once the quote is sent. This suits quotes you price yourself.
  • Attached to every quote request email, and to the quote you send: the PDF also goes with the request emails, to you and to the customer, and the customer can download it from the start. This suits shops where the configured price is the quote.

It works whether or not the configurator's own Download PDF button is enabled.

The logo is the header image of the WooCommerce emails (WooCommerce > Settings > Emails), and the address is your store address. A quote always shows its price. Do not display totals in the PDF only hides the configured price before you have sent a quote.

On the request screen, Download the quote (PDF) shows the PDF as the customer will receive it, with the message you are writing.

The template is pc-pdf-export/quote.php, which you can override like the configuration PDF below, in my-theme/woocommerce/pc-pdf-export/quote.php.

Changing the PDF template

Overriding the template file

The PDF template can be overridden in the same way the WooCommerce templates would:

  1. The original template file can be found in woocommerce-mkl-pc-save-your-design/templates/pc-pdf-export/pdf.php
  2. Copy the file to your theme (NB: if you are using a public theme which will be updated, make sure to use a Child theme, or your changes will be removed when updating). E.g. my-theme/woocommerce/pc-pdf-export/pdf.php
  3. Edit the file to suit your needs

Overriding using hooks

[FILTER] PC.syd.pdf_template.arguments Override the arguments passed to the PDF template

[FILTER] PC.syd.pdf_download.pdf_options To override the Dompdf options object

[FILTER] PC.syd.pdf_download.pdf_content To override the HTML content of the PDF

[FILTER] PC.syd.pdf_download.paper_size To override the size of the PDF pages (default: A4)

[FILTER] PC.syd.pdf_download.orientation To override the orientation of the PDF pages (default: portrait)

The four PC.syd.pdf_download.* filters above also receive the template's path and arguments, and apply to the quote PDF too.

[FILTER] PC.syd.quote_pdf_template.arguments Override the arguments passed to the quote PDF template

[FILTER] PC.syd.quote_pdf.shop The shop details at the top of the quote PDF: name, logo, address, email

[ACTION] PC.syd.quote_pdf.after At the end of the quote PDF

Since version 2.4, the prices in the configuration PDF are calculated on the server, from the configuration, rather than sent by the browser.