- Posts: 105
- Thank you received: 8
How to change invoice pdf's?
1 year 4 months ago #367022
by Rusty
How to change invoice pdf's? was created by Rusty
-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.4.6
Hi!
As far as I know the view "invoice.php" contains the code for the creation of pdf invoice and pdf shipping invoice.
I want to change only the shipping invoice - want to add a footer line with some stuff. I created a new custom field for the type "order". Is this correct? If so, how and where to call this custom field - particular for the shipping invoice pdf?
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.4.6
Hi!
As far as I know the view "invoice.php" contains the code for the creation of pdf invoice and pdf shipping invoice.
I want to change only the shipping invoice - want to add a footer line with some stuff. I created a new custom field for the type "order". Is this correct? If so, how and where to call this custom field - particular for the shipping invoice pdf?
Please Log in or Create an account to join the conversation.
1 year 4 months ago #367027
by nicolas
Replied by nicolas on topic How to change invoice pdf's?
Hi,
No, customizing the invoice with a custom field is the wrong approach.
Since you're using the PDF invoice plugin to generate an invoice with a PDF format, you want to follow the instructions provided on the page relative to this plugin:
No, customizing the invoice with a custom field is the wrong approach.
Since you're using the PDF invoice plugin to generate an invoice with a PDF format, you want to follow the instructions provided on the page relative to this plugin:
www.hikashop.com/marketplace/product/18-plugin-pdf.htmlIf you want to customize the layout you've selected in the settings of the plugin, you'll need to :
Connect to your website via FTP or your cpanel's file manager
Download the file of the layout in the folder plugins/hikashop/attachinvoice/attachinvoice/
Modify the file locally with Notepad++ or Visual Studio Code
Upload the modified file to media/com_hikashop/plugins/
That way, you'll have your modifications as an override of the layout, so you won't lose them when you update the plugin in the future.
Please Log in or Create an account to join the conversation.
Time to create page: 0.198 seconds