How to change invoice pdf's?

  • Posts: 65
  • Thank you received: 5
  • Hikashop Business
3 days 11 hours ago #367022

-- 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?

Please Log in or Create an account to join the conversation.

  • Posts: 83766
  • Thank you received: 13555
  • MODERATOR
3 days 8 hours ago #367027

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:

If 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.

www.hikashop.com/marketplace/product/18-plugin-pdf.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum