Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Invoice Date + Time Rate Topic   - - - - -

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3221 posts

Posted 18 June 2018 - 06:12 AM #1

Hello,

 

new document editor > invoice

 

prints invoice-order place date (timestamp) date + time. How do I get rid of time?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18484 posts

Posted 18 June 2018 - 01:30 PM #2

app/Tygh/Template/Document/Order/Variables/OrderVariable.php

 

try to replace

$this->data['timestamp'] = $formatter->asDatetime($this->data['timestamp']);

with

$this->data['timestamp'] = $formatter->asDatetime($this->data['timestamp'], Registry::get('settings.Appearance.date_format'));

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3221 posts

Posted 18 June 2018 - 02:03 PM #3

Thanks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18484 posts

Posted 19 June 2018 - 05:31 AM #4

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.