Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Store Closed/down for maintenance


mpence

Recommended Posts

You could just create another index page that your customers see.

 

And to prevent them accessing a specific catalog page during your downtime, perhaps just put an .htaccess file in place.

 

Just a suggestion. :)

Link to comment
Share on other sites

I want the ability to close my store for what ever reason, maintenance etc. Is there a way of doing this?

 

Thanks, and sorry about the newbie question.

 

Mike

 

Put the following code in a file, change (Your Store Name) to your store name,

and save it as index.php.maintenance:

 

<?php

$page_title = '';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 

<head>

<meta http-equiv="content-type" content="text.html;

charset=iso8859-1" />

 

 

<style type="text/css" media="screen">

body { background-color: #ffffff; }

 

. content {

background-color: #f5f5f5;

padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px;

margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;

}

 

a.navlink:link { color: #003366; text-decoration: none; }

a.navlink:visited { color: #003366; text-decoration: none; }

a.navlink:hover { color: #cccccc; text-decoration: none; }

 

td {

font-family: Verdana, Arial, Helvetica, sans-serif; font-size 13px; vertical-align: top;

}

 

.title {

font-size: 24px; font-weight: normal; color: #ffffff;

margin-top: 5px; margin-bottom: 5px; margin-left: 20px;

padding-top: 5px; padding-bottom:5px; padding-left: 20px;

}

</style>

</head>

<body>

 

 

 

<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method ="post">

 

<table width="90%" border="0" cellspacing="10" cellpadding="0" align="center">

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<tr>

<td> </td>

<td> </td>

<td> </td>

</tr>

<td> </td>

<tr>

<td colspan="3" bgcolor="#003366"><p class="title">         The (Your Store Name) site is down for maintenance</p></td>

</tr>

 

</form>

 

</table>

</body>

</html>

 

Then, if your catalog directory is under your document root, copy this to index.php

in your document root (normally www in linux systems), remove or rename it when you

are done. If your catalog is in your document root, rename the index.php that is there

as index.php.backup so you can recover it once the maintenance is done, then proceed

as above in this directory.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...