How To Put Today's Date

Brady

No avatar

2006-01-26 17:56

can somebody help he how to How To Put Today's Date ? in products page.

hx guys

sadman

No avatar

2006-01-26 18:26


sup

look here

http://uk2.php.net/date

Brady

No avatar

2006-01-27 12:31

tjanks man but in quick cart..... what file do i have 2 modify ?

Brady

No avatar

2006-01-28 07:50

anybody help ??

Brady

No avatar

2006-01-28 11:32

anybody ???????????????????????????????????????????????????

wizzud

No avatar

2006-01-28 12:49

There are all sorts of ways to do this. One way is to edit /config/general.php and insert the line

$config['sTodaysDate'] = 'Todays Date: '.date('F j, Y');

Then edit /templates/products_more.tpl (or whichever relevant template for where you want the date to appear) and put

$config[sTodaysDate]

where you want the date to be displayed.

If you want other HTML around it, either put it in the template or in the config variable itself. You can take the 'Todays Date: ' text out of the config variable and put it in the template instead if you wish (or change or remove it entirely. You can change the date format (visit the link supplied by sadman above).
Note: this puts todays date on the More Info page for every product.

Brady

No avatar

2006-01-28 14:26

thanks man...i'll try to implement your code....

Back to top
about us | contact