Date Format and other questions

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Date Format and other questions

Post by Jan »

Hi, see:
administrator\components\com_virtuemart\pdf\delivery.pdf.php
administrator\components\com_virtuemart\pdf\phoca.tcpdf.php

Jan
If you find Phoca extensions useful, please support the project
Tobiwankenobi
Phoca Member
Phoca Member
Posts: 10
Joined: 09 Aug 2009, 20:33

Re: Date Format and other questions

Post by Tobiwankenobi »

Hi,

take a look at the FAQ: https://www.phoca.cz/documents/18-virtue ... te-receipt
Change the file ps_delivery.php in the directory administrator/components/com_virtuemart/classes

There three queries can be found:

Code: Select all

1 <?php
2 $q = "SELECT *, FROM_UNIXTIME(cdate, '%Y-%m-%d') as order_date";
3 ?>
By simply changing the pattern "%Y-%m-%d" to the desired date format (like "%d.%m.%Y) does it. The characters are standing for day, month and year.


Best regards
Tobiwankenobi
Post Reply