Jump to content

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

A Type 'date' Variable For Today, Does It Exist? Rate Topic   - - - - -

 
  • yasemin
  • Newbie
  • Members
  • Join Date: 13-Jun 16
  • 4 posts

Posted 11 July 2016 - 01:10 PM #1

Hi,

I am using an add-on from Cart-power for editing my invoices and need to put the date the payment is made on the invoice. There is the variable order_date, but it is not necessarily the same as payment date, because I have customers that put an order online and then come to pay at our shop some days later. Hence, the invoice is not issued until the payment is made and cannot carry the date of the order.

I issue the invoice immediately when the payment is made, so I need some kind of 'today' variable. Is there a variable that gives me today's date??

 

Thanks!

yasemin



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

Posted 11 July 2016 - 02:04 PM #2

Current timestamp can be received in the following way.

 

PHP:

$today = TIME;

Templates:

{$today = $smarty.const.TIME}

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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • yasemin
  • Newbie
  • Members
  • Join Date: 13-Jun 16
  • 4 posts

Posted 12 July 2016 - 04:14 PM #3

Thanks! I will try this out.