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

How to add system date/time to top_menu.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-21-2008, 10:56 PM
 
mphhpm mphhpm is offline
 

Newbie
  
Join Date: Aug 2008
Posts: 3
 

Default How to add system date/time to top_menu.tpl

* I would like to have the system date/time shown in the table in top_menu.tpl
? is there a way to make this work in the template:

<?php
echo date("d/m/y");
?>

peace,
mark
__________________
4.1.10
Configurator
Affiliate
Reply With Quote
  #2  
Old 10-21-2008, 11:52 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: How to add system date/time to top_menu.tpl

There is a buit-in smarty variable "now".
You can use it in templates this way:
HTML Code:
{$smarty.now|date_format:"%d/%m/%Y"}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 10-22-2008, 06:10 AM
 
mphhpm mphhpm is offline
 

Newbie
  
Join Date: Aug 2008
Posts: 3
 

Default Re: How to add system date/time to top_menu.tpl

Thank you very much - just what I needed.

peace,
mark
__________________
4.1.10
Configurator
Affiliate
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:55 PM.

   

 
X-Cart forums © 2001-2020