0

In our PDF we display the date of the order with this line:

<?php echo $this->getPdfHelper()->getDate()?>

public function _getDate($format = 'd-F-Y-H:i')
{
    return date($format, Mage::app()->getLocale()->storeTimeStamp());
}

Currently it is displayed as 2 Jan. 2015.

But we want to change this into Friday 2 January 2015.

What code do we need for this?

4
  • What is this getPdfHelper method? I did not find any trace of it. What file is that?
    – Marius
    Jan 9, 2015 at 9:55
  • That is from the Fooman Pdf Customiser extension, that we use for PDF customization
    – JGeer
    Jan 9, 2015 at 10:12
  • Then either ask Fooman, or post the getDate method in here if the license allows you.
    – Marius
    Jan 9, 2015 at 10:21
  • I edit my question, with the getDate method
    – JGeer
    Jan 9, 2015 at 10:25

1 Answer 1

1

Replace

<?php echo $this->getPdfHelper()->getDate()?>

with

<?php echo $this->getPdfHelper()->getDate('l d F Y')?>

See this for additional date formats

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.