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)
-   -   Display on this date? (https://forum.x-cart.com/showthread.php?t=56162)

Phoenixone 10-23-2010 06:06 AM

Display on this date?
 
hey guys need some help:

i dont know if this piece of code is what im looking for or if there is something else out there that will work better?

Code:

{if $smarty.now|date_format:"%m" > 10}

i want to display a x-mas image in December and a valentine image in February, ect ect

i tried to put this code in but it didnt work

Code:

{if $smarty.now|date_format:"%m" = 12}


please help

BritSteve 10-23-2010 06:28 AM

Re: Display on this date?
 
A single = is an assignment, you need to use a double == or use eq. There may be something else wrong, but try the == first.

Steve

Phoenixone 10-23-2010 06:55 AM

Re: Display on this date?
 
Quote:

Originally Posted by BritSteve
A single = is an assignment, you need to use a double == or use eq. There may be something else wrong, but try the == first.

Steve


yip it works thanks


All times are GMT -8. The time now is 11:53 PM.

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