PDF Invoice plugin

  • Posts: 37
  • Thank you received: 0
11 years 3 months ago #140821

I have installed the pdf invoice plugin and it works nice. But know I want to change the lay out, is that possible?

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

  • Posts: 26234
  • Thank you received: 4036
  • MODERATOR
11 years 3 months ago #140826

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 2
  • Thank you received: 0
11 years 2 months ago #145825

thank you for sharing. but i wonder if there is any detailed tutorial about this pdf plugin .
forgive me for being a new beginner.

Last edit: 11 years 2 months ago by lifemore.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #145872

Hi,

To change the layout, you have to edit he file "plugins\hikashop\attachinvoice\attachinvoice\invoice.php" via FTP.
We don't have detailed tutorial for this. It require some php and html skills.

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

  • Posts: 23
  • Thank you received: 0
10 years 6 months ago #176684

Hi,
I have a multilingual website but I'd like to send the invoice only in english (default language), whatever the language used in frontend by the user.
How can I do that?
Thanks
François

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

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
10 years 6 months ago #176714

Hi,

There is no option for that. The invoice is sent in the language of the website of your customers.
If you want to change that, you'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice.php and modify the code in order to force the english language.

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

  • Posts: 95
  • Thank you received: 1
  • Hikashop Business
9 years 7 months ago #216460

Hello. In my hikashop I have created some additional custom address fields and I need them to be displayed on the invoice that this plugin creates. How can I do this?

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

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
9 years 7 months ago #216481

Hi,

You want to edit the file "address_template" for both your frontend and backend templates via the menu Display>Views and add the tags of your new custom fields.

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

  • Posts: 95
  • Thank you received: 1
  • Hikashop Business
9 years 7 months ago #217024

Hi,
i want to add fields in the invoice pdf i get through pdfinvoice plugin.
i have activated 2 fields VAT,COMPANY for the address(the core ones).
How can i check if they are empty or not in the address_template.php so when they are empty i dont want to show the label on the invoice
Thank you

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

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
9 years 7 months ago #217028

Hi,

If you use an old version of HikaShop it's not possible
If you use a recent version of HikaShop you can do it like that:

<?php $address = $this->params->get('address');
if(!empty($address->address_vat)){
echo 'VAT n°:'.$address->address_vat;
} ?>

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

Time to create page: 0.105 seconds
Powered by Kunena Forum