Installation
Depending on your needs you have two options to install the extension.
Installation using composer
The recommended way to install the extension is by using Composer. In your composer based TYPO3 project root, just do
composer require extcode/.
Installation from TYPO3 Extension Repository (TER)
An installation from TER is not possible because tecnickcom/tcpdf will be installed as a dependency. Installing external packages is not provided by the extension manager.
Latest version from git
You can get the latest version from git by using the git command:
git clone git@github.com:extcode/cart_pdf.git
Preparation: Include TypoScript
The extension ships some TypoScript code which needs to be included, either via site sets or as static TypoScript. Use only one of both ways.
Include site sets
The extension provides a site set for the general configuration and one for each type of PDF:
- Shopping Cart - Cart Pdf (
extcode/)cart- pdf - Shopping Cart - Cart Pdf - Order PDF (
extcode/)cart- pdf- order- pdf - Shopping Cart - Cart Pdf - Invoice PDF (
extcode/)cart- pdf- invoice- pdf - Shopping Cart - Cart Pdf - Delivery PDF (
extcode/)cart- pdf- delivery- pdf
The sets of the PDF types depend on extcode/, so it is enough to
add the sets of the required PDF types to the site.
- Switch to the Sites module and edit the configuration of your site.
- Select one or more of Shopping Cart - Cart Pdf - Order PDF, Shopping Cart - Cart Pdf - Invoice PDF, Shopping Cart - Cart Pdf - Delivery PDF at the field Sets for this Site.
Alternatively, add the sets to the dependencies in the
config/ of your site:
dependencies:
- extcode/cart-pdf-order-pdf
- extcode/cart-pdf-invoice-pdf
- extcode/cart-pdf-delivery-pdf
Include static TypoScript
- Switch to the root page of your site.
- Switch to the Template module and select Info/Modify.
- Press the link Edit the whole template record and switch to the tab Includes.
- Select Shopping Cart - Cart Pdf at the field Include static (from extensions):
- Select one or more of Shopping Cart - Cart Pdf - Order PDF, Shopping Cart - Cart Pdf - Invoice PDF, Shopping Cart - Cart Pdf - Delivery PDF at the field Include static (from extensions):