Hello Guys,
lot of our customers ask me how to create custom function for PDF Maker or EMAIL Maker.
Even thought it is described in our manuals (you can read it here) of these extensions, I will show you it one more time with simple example.
First at all, you need to create own .php file because with update of PDF Maker or EMAIL Maker our standard files are re-written and you can lose your function.
- Please create your new file in: [vtigerROOT]/modules/PDFMaker(EMAILMaker)/resources/functions
- At least, your file have to contains
<?php
You can also copy these lines to your new file:
if (!function_exists('nameofyourfunction')) { function nameofyourfunction( ) { } }
- Now, you can create your own custom function
<?php if (!function_exists('sayHello')) { function sayHello($name) { return 'Hello '.$name. '! Now, you know how to add own custom function :)'; } }
- Please, save your file
- Open PDF Maker Professional or EMAIL Maker Professional and in EditView of template please select Other information
- Now, You can see your new function in list of custom functions. You can add it into your template.
- That’s all.
Hope, it was interesting for You.
Comments (6)
Hello, how are you?
Does this custom menu option work for free PDFMaker?
Hello, custom functions are not supported by FREE PDFMaker.
Custom Functions are just for PDF Maker PRO version.
el PDFMAKER BASIC tampoco lo soporta ?
esa nota deberian ponerla cuando se adquiere dicho producto
Good day, PDF Maker BASIC does not support custom functions. You can check the comparison table for more info: https://it-solutions4you.com/vtiger-extensions/pdf-maker/compare-versions/
y me salio otra duda
tengo el PDFMAKER con licencia, cuando la licencia expira el PDFMAKER deja de funcionar es decir ya no podre exportar mi pedidos o ordenes de compra o solo termina mi soporte con ustedes y el sistema sigue funcionando normalmente?
Hello, when your license expires, you can keep using PDF Maker. You will only lost latest updates and full support, however, usage for license is lifetime. You can renew support and updates any time.
More info: https://it-solutions4you.com/vtiger-extensions/pdf-maker/membership-renew/