Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Close the shop after 10AM


Sixten

Recommended Posts

Posted

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

Posted

The Basic Template Structure (BTS) has a Closed template which can be edited to say whatever you wish it to.

 

Vger

Posted
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... ?

  • 2 months later...
Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...