Overwrite pdf file for order confirmation

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
billy678
Posts: 21
Joined: 02 Jun 2022, 15:57

Overwrite pdf file for order confirmation

Post by billy678 » 02 Jun 2022, 16:10

Hi,
I tried to overwrite the file which creates the pdf for the order confirmation.
There is an aimeos_extend extension and the file which creates it is the pdf.php in job package.
So I copied it to path "/aimeos_extend/Resources/Private/Extensions/aimeos_extend/templates/order/email/payment/pdf.php" - nothing happend.
Can you tell me what my mistake is?
Thank you & best regards
________
PHP 7.4
aimeos-typo3: 22.4.3
aimeos-core: 2022.04.7

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Overwrite pdf file for order confirmation

Post by aimeos » 03 Jun 2022, 05:20

That's correct. Did you activate your aimeos_extend extension in the ExtensionManager?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

billy678
Posts: 21
Joined: 02 Jun 2022, 15:57

Re: Overwrite pdf file for order confirmation

Post by billy678 » 03 Jun 2022, 09:31

Yes sure. We already did a lot of customizations.

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Overwrite pdf file for order confirmation

Post by aimeos » 03 Jun 2022, 19:12

The configured template directories in the generated extensions are:

Code: Select all

	'template' => [
		'admin/jqadm/templates' => [
			'templates/admin/jqadm',
		],
		'admin/jsonadm/templates' => [
			'templates/admin/jsonadm',
		],
		'client/jsonapi/templates' => [
			'templates/client/jsonapi',
		],
		'client/html/templates' => [
			'templates/client/html',
		],
		'controller/jobs/templates' => [
			'templates/controller/jobs',
		],
	],
Therefore, copy the template to

Code: Select all

/aimeos_extend/Resources/Private/Extensions/aimeos_extend/templates/controller/jobs/order/email/payment/pdf.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

billy678
Posts: 21
Joined: 02 Jun 2022, 15:57

Re: Overwrite pdf file for order confirmation

Post by billy678 » 07 Jun 2022, 11:31

That works! Thank you.

Post Reply