Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Add todays date?

 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 09-20-2003, 07:53 AM
 
kck kck is offline
 

Member
  
Join Date: Apr 2003
Posts: 11
 

Default Add todays date?

Hello I would like to addtoday's date to the index page somewhere can anyone instruct me on how to do this? I have tried with java script that I use on static pages but no luck and tried to use php but I think I am missing something....

Thanks-
Khris
Reply With Quote
  #2  
Old 09-20-2003, 10:32 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Hi,

all you need to add to show the date is this


Code:
{$currentDate|date_format:"%A, %B %e, %Y"}

Just a bit of smarty
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 11-30-2003, 02:33 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Is there something else to this?

I tried adding it to Customer/home_main.tpl with no success.

Suggestions please...
Reply With Quote
  #4  
Old 12-01-2003, 01:00 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

I use this code:

Quote:
{$smarty.now|date_format:"%A, %B %e %Y, %r"}

Further info about smarty dates here: http://smarty.php.net/manual/en/language.modifier.date.format.php
Reply With Quote
  #5  
Old 12-04-2003, 07:27 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Thanks for that seams simple.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #6  
Old 12-04-2003, 07:31 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Works like a charm. Thank you.
Reply With Quote
  #7  
Old 12-05-2003, 07:29 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Very good.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:25 PM.

   

 
X-Cart forums © 2001-2020