Add a line and picture into the invoice

  • Posts: 95
  • Thank you received: 1
12 years 5 months ago #52802

Hello,

I need to add one line and a picture into the invoice.

I tried to edit order/invoice.php in Display->Views

<div style="float:right;width:100px;padding-top:20px">
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
<?php echo JText::_('INVOICE').': '.@$this->element->order_number;?>

to:
<div style="float:right;width:200px;padding-top:20px">
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
<?php echo JText::_('DATE_TAX').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
<?php echo JText::_('INVOICE').': '.@$this->element->order_number;?>

and add DATE_VAT="VAT date" into the language file but nothing changed in the invoice. How can I add such line? It should show the same date as the date line originally shown in the invoice, but I need to have the date line one more time including text with VAT date (it is by law in my country) - like: VAT Date: 6.6.2012.

I also need to add a picture with signature to the bottom line of the invoice. How can I do this?

Thanks
Vaclav

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52819

Hi vaclav,

Are you sure that you are editing the good template ?

Because I tried your solution on my end, and it's working fine.
order / invoice.php is in the backend view and in frontend.

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #52883

Make sure that you're editing that view file for your back end template.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum