Post by kellyrnh » Thu Dec 13, 2012 11:01 pm

Hi, I've searched but can seem to find a solution. I need to temporarily take down one of my stores that is set up in my multistore, without deleting it. Any ideas how I can do it? I can only see how to put the whole thing from the default store into maintenance mode, not one specific store. Any help is appreciated!

New member

Posts

Joined
Fri Sep 16, 2011 11:49 pm

Post by MrTech » Fri Dec 14, 2012 12:00 pm


~
Install Extensions OR OpenCart Fast Service! PayPal Accepted
I will professionally install and configure any free or purchased theme, module or extension.

Visit http://www.mrtech.ca if you need an OpenCart webmaster
~


User avatar
Active Member

Posts

Joined
Mon Jan 09, 2012 2:39 pm
Location - Canada, Eh!

Post by smifis » Fri Dec 14, 2012 2:56 pm

If you want a quick and dirty fix, you could check which store is being loaded up, and if it's your winner, then load up a html file and quit opencart with die().

Nothing too complex.

After

Code: Select all

$config->set('config_store_id', $store_query->row['store_id']);
If you add

Code: Select all

if ($store_query->row['store_id'] == 3) { 
require('storeclosed.php');
die();
}
And in file called 'storeclosed.php', have something like

Code: Select all

<html>
<head>
<title>Sorry, This store is closed until further notice</title>
</head>
<body>
<p>I'm sorry, this store is closed.</p><p>For returns, please contact us on xxx xxx xxxx or rma@xxxxx.com</p>
</body>
</html>

Active Member

Posts

Joined
Sat Jan 15, 2011 10:37 pm

Who is online

Users browsing this forum: No registered users and 35 guests