X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding a clock and date but the clock isn't moving (https://forum.x-cart.com/showthread.php?t=10221)

a1deano 11-05-2004 02:13 PM

Adding a clock and date but the clock isn't moving
 
Hi can any help, i am trying to put a clock and time on my main page underneath the speedbar, i am placing the code inside the head.tpl
the code i used is {$smarty.now|date_format:"%A, %B %e %Y, %r"}
which i found on a forum here, but the clock isn't ticking, if i press refresh then the clock jumps to the correct time.
any help please - thanks

leed 11-10-2004 01:29 AM

Using Smarty like this won't give you a dynamic clock (one that updates without refreshing the page. You'll have to use Javascript or DHTML. Take a look at www.dynamicdrive.com for clock scripts

LeeD

cotc2001 11-10-2004 01:30 PM

They are all good, but im wanting to implement something similair but use the server time rather than the customers local time.

For example if I say in the basket that you can have next day delivery if orders are placed before 3pm (for UK customers), then I need to show the server time otherwise people from the US will be showing their local time from their pc's

a1deano 11-10-2004 02:07 PM

Hi many thanks for link, found something i liked, cheers Dean


All times are GMT -8. The time now is 04:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.