Skip to main content

date format

More
14 years 10 months ago #29380 by plumbingdeals
date format was created by plumbingdeals
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.

More
14 years 10 months ago #29391 by nicolas
Replied by nicolas on topic Re: date format
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.

More
13 years 11 months ago #72293 by Hodgebw
Replied by Hodgebw on topic Re: date format
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.

More
13 years 10 months ago #72483 by nicolas
Replied by nicolas on topic Re: date format
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.209 seconds
Powered by Kunena Forum