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

Disable feature according to date?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-20-2007, 02:43 AM
 
hamid hamid is offline
 

Senior Member
  
Join Date: Apr 2004
Posts: 107
 

Default Disable feature according to date?

I have a next day delivery option on my site, however I want to disable it on Friday and then have it come back automatically on Saturday.

Does anyone know if there is a way to get x-cart to check the date, and then if the date is less than the 24th August it doesnt show the next day delivery option, but if the date is greater than 25th to display the next day delivery option?

Or is there a better way of doing it?

Thanks in advance!
__________________
X-Cart Gold v4.6.5
Reply With Quote
  #2  
Old 08-20-2007, 04:52 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Disable feature according to date?

Read THIS THREAD -- follow it to the end... Smarty will allow you to do this with one line of code! Read the Smarty docs for date_format

Hope this helps.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 08-20-2007, 05:01 AM
 
hamid hamid is offline
 

Senior Member
  
Join Date: Apr 2004
Posts: 107
 

Default Re: Disable feature according to date?

thanks for your reply carpeperdiem.... that sounds great! I'll check it out later on tonight
__________________
X-Cart Gold v4.6.5
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 05:01 AM.

   

 
X-Cart forums © 2001-2020