Sixten Posted February 28, 2006 Posted February 28, 2006 This might sound odd for a webshop, wich often is used to be online 24/24 and 7/7. My friend is a caterer, providing people with sandwiches, breadspread, warm meals, ... and he wants this online shop so people can order from home, so he can deliver the food. But he only wants the people to take orders from 00AM till 10AM, because he needs to prepare the food orders, and do deliveries. So the shop needs to be closed daily after 10AM. Is there a way to do this ? Perhaps not with a OC feature, but with a cron job or so ? I'm not really an expert in this feature/request. Anyone able to help me with this? Or get me going ? thanks, Sixten
moonbeam Posted February 28, 2006 Posted February 28, 2006 Maybe you can alter this contribution to suit your needs... HERE Good Luck, Moon "Woohoo, Just Havin Funnn!"
♥Vger Posted February 28, 2006 Posted February 28, 2006 The Basic Template Structure (BTS) has a Closed template which can be edited to say whatever you wish it to. Vger
Sixten Posted March 4, 2006 Author Posted March 4, 2006 The Basic Template Structure (BTS) has a Closed template which can be edited to say whatever you wish it to. Vger But I guess this is only a template-edit, and it won't close the shop automaticly every day from... to... ?
Sixten Posted May 16, 2006 Author Posted May 16, 2006 I wrote a small script myself to integrate in the index.php file : <?php $now = date('H'); if($now >= 10 && $now <= 12) { //script here }; else { //its not the right time }; ?> This routine works perfectly on it's own, but now I need to find a way to integrate the forum-index.php into it. Simply inserting the whole index.php into the //script here place doesn't seem to work. Are there any php-whizkids that can point me out how I can get it to work ? Thanks in advance
Recommended Posts
Archived
This topic is now archived and is closed to further replies.