| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Day Specific Text | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Day Specific Text
I would like to display certain text on Fridays and Saturdays on our website, then on any other day, have nothing showing. Is there an easy way to automate this? Basically it would be something like this:
If Friday: Show Text 1 If Saturday: Show Text 2 If Any Other Day: Show Nothing Any help would be greatly appreciated! |
|||||||
#2
|
|||||||
|
|||||||
Re: Day Specific Text
This should work:
PHP Code:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#3
|
|||||||
|
|||||||
Re: Day Specific Text
Ralph solved this for me as well last year!
-- here is a page in the smarty docs with date/time string features --edit as needed: http://www.smarty.net/manual/en/language.modifier.date.format.php Hope this helps!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||
|
|||||||
Re: Day Specific Text
Ralph,
Thanks for your help! It worked like a charm! Chas. |
|||||||
|
|||
X-Cart forums © 2001-2020
|