date format

  • Posts: 223
  • Thank you received: 1
13 years 1 week ago #29380

i have a feeling this is right in front of me, but i don't see it!

when printing invoices, the date is formatted as dd/m/yyyy...can this be changed to m/dd/yyyy?

also, when printing, the date is breaking after the day.

and lastly...seems to be lots of wasted space on top of printed invoice...anyway to adjust print headers/margins?

thanks for the help!

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
13 years 1 week ago #29391

You can personalize your invoices by editing the file "invoice" via the menu Display->Views.
There you will find the line:
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>

which you can change to:
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%B %d %Y ');?><br/>

so that the date displays with the format you want.

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

  • Posts: 105
  • Thank you received: 0
12 years 3 weeks ago #72293

I am also getting the date splitting between the lines, as follows

Date: 26 October
2012

How can I change it so that it appears all on one line? eg. Date: 26 October 2012.

How can I also add the bank account details on the invoice below the table containing product and price and totals?

Thanks

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #72483

You would have to change the line:
<div style="float:right;width:100px;padding-top:20px">

to:
<div style="float:right;width:200px;padding-top:20px">

in that same file.

For the bank account details you can add them at the bottom of the file, just before:
<div style="page-break-after:always"></div>

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

Time to create page: 0.066 seconds
Powered by Kunena Forum