Skip to content

Repository files navigation

TTA Product PDF

Built for PrestaShop

PrestaShop module to generate a customizable product PDF directly from the product page.

Developed by Tecnoacquisti for PrestaShop 8.0 – 9.x.


✨ Main features

  • PDF generation from a customizable TPL
  • Configurable content:
    • Shop logo
    • Product title
    • Price
    • Brand
    • Reference / EAN / MPN
    • Short and long description (clean text, HTML removed)
    • Product details (features)
    • Custom footer text
  • QR Code (TCPDF write2DBarcode) linking to the product
  • QR text translatable (handled correctly by PrestaShop)
  • Product image included
  • Selectable hook support from the Back Office:
    • displayProductAdditionalInfo
    • displayProductActions
    • Custom hook displayTtaProductPdf
  • SEO-friendly URL: /product-pdf/{id}/{product-slug}
  • X-Robots-Tag: noindex on the PDF response
  • Compatible with Classic theme and custom themes

🧩 Compatibility

PrestaShop Support
8.0.x
8.1.x
8.2.x
8.3.x
9.x
1.7.x ❌ Not supported

📦 Installation

  1. Copy the ttaproductpdf folder into /modules
  2. Install the module from BO → Modules
  3. Configure options from the module panel

⚙️ Configuration

From the configuration panel you can:

  • Enable/disable individual fields in the PDF
  • Set the footer text
  • Choose the position of the PDF button (hook)
  • Use a custom position inside the product template

📍 Custom button position

By selecting Custom hook: displayTtaProductPdf, add the following line in your theme file:

themes/YOUR_THEME/templates/catalog/product.tpl

Insert it in the desired place (recommended before the copyright):

{hook h='displayTtaProductPdf' product=$product}

📄 PDF Template

The PDF is generated from:

/views/templates/front/product.tpl

The template is fully editable (simple HTML + tables, TCPDF-compatible).

🔐 Security

Access is restricted to active products only (404 on inactive or non-existent products).

The PDF URL uses a SEO-friendly format (/product-pdf/{id}/{slug}) and carries an X-Robots-Tag: noindex, nofollow response header to prevent search engine indexing.

🌍 Translations

All strings are translatable from: International → Translations → Translations of modules

The QR Code text is managed via a TPL to avoid controller limitations.

🛠️ Technologies used

PrestaShop 8/9

TCPDF (PrestaShop core)

Smarty

PHP 8.x

👨‍💻 Author

Tecnoacquisti.com

🌐 https://www.tecnoacquisti.com

📧 helpdesk@tecnoacquisti.com

📜 License

This module is released under the Academic Free License (AFL) v. 3.0.

You are free to:

  • Use the software for commercial and non-commercial purposes
  • Modify the source code
  • Distribute modified or unmodified versions

Under the terms of the AFL v.3.0 license.

Full license text:
https://opensource.org/licenses/AFL-3.0

About

PrestaShop module for generating customizable product PDFs directly from the product page. Includes QR code, configurable content, selectable hook position, and full compatibility with PrestaShop 8.2–9.x.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages