Hi,
I need to deactivate a multistore so it cannot be used by customers.
The store is one of several multistores under a single opencart 3.08 installation.
Ideally if anyone lands on any of its pages, they will see a message saying the store is not currently in business.
I would be grateful for advice on how to do this, or an extension that does it.
Thanks
I need to deactivate a multistore so it cannot be used by customers.
The store is one of several multistores under a single opencart 3.08 installation.
Ideally if anyone lands on any of its pages, they will see a message saying the store is not currently in business.
I would be grateful for advice on how to do this, or an extension that does it.
Thanks
This has been asked and answered before:CaptainHaddock wrote: ↑Mon Apr 08, 2024 10:23 amI need to deactivate a multistore so it cannot be used by customers.
The store is one of several multistores under a single opencart 3.08 installation.
Ideally if anyone lands on any of its pages, they will see a message saying the store is not currently in business.
I would be grateful for advice on how to do this, or an extension that does it.
viewtopic.php?t=209850
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi Paul,paulfeakins wrote: ↑Mon Apr 08, 2024 6:59 pmThis has been asked and answered before:CaptainHaddock wrote: ↑Mon Apr 08, 2024 10:23 amI need to deactivate a multistore so it cannot be used by customers.
The store is one of several multistores under a single opencart 3.08 installation.
Ideally if anyone lands on any of its pages, they will see a message saying the store is not currently in business.
I would be grateful for advice on how to do this, or an extension that does it.
viewtopic.php?t=209850
Thanks for your reply.
My question is different to the one in the link you kindly provided.
I want to deactivate one multistore, not all multistores under a parent.
The switch for maintenance mode is only shown for the parent store. If you turn it on, it puts all multistores into maintenance.
How do I deactivate just one multistore?
Thanks
Ah yes, I did Google this for sub-stores so assumed Google would have returned a relevant result but it seems not.CaptainHaddock wrote: ↑Tue Apr 09, 2024 5:24 amMy question is different to the one in the link you kindly provided.
Have you looked for extensions to do this yet?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Maybe not the very best solution but it works...:
Configuration --> Settings -->Edit store and change URL to https://deactivatedstore.com
Second solution is to change the domain documentroot in (Cpanel) or Domainpointer (DirectAdmin).
Most ideal is indeed a solution that allows you to put a single multistore in maintenance mode. A good working plugin for this I have not seen yet.
Configuration --> Settings -->Edit store and change URL to https://deactivatedstore.com
Second solution is to change the domain documentroot in (Cpanel) or Domainpointer (DirectAdmin).
Most ideal is indeed a solution that allows you to put a single multistore in maintenance mode. A good working plugin for this I have not seen yet.
OC maintenance was set for technical maintenance, not store maintenance and since all multi stores use the same logic, all should be put into maintenance at the same time for that. It is controlled by a single setting variable and checked in catalog/controller/startup/maintenance.php which is called always and ignores some routes as well as logged in users. For a nice solution you would need to set, and maintain, a variable per multistore child and create an additional interface to handle those.
as a very very temp fix, you could modify maintenance.php and trigger maintenance mode per specific store_id.
to
I don't do multistore so I cannot test this but you could try it.
as a very very temp fix, you could modify maintenance.php and trigger maintenance mode per specific store_id.
Code: Select all
class ControllerStartupMaintenance extends Controller {
public function index() {
if ($this->config->get('config_maintenance')) {
..........
Code: Select all
class ControllerStartupMaintenance extends Controller {
public function index() {
// force store with id = 1 into maintenance, comment out to disable
$forced_maintenance_store = 1;
if ($this->config->get('config_maintenance') || (isset($forced_maintenance_store) && ($this->config->get('config_store_id') == $forced_maintenance_store))) {
......
Thanks very much for the suggestions.
I found an extension that lets you put individual multistores into maintenance mode.
It's called Multistore Maintenance Switch and was easy to install and is working well:
https://www.opencart.com/index.php?rout ... n_id=39170
Thanks all !
I found an extension that lets you put individual multistores into maintenance mode.
It's called Multistore Maintenance Switch and was easy to install and is working well:
https://www.opencart.com/index.php?rout ... n_id=39170
Thanks all !
Excellent work Captain!CaptainHaddock wrote: ↑Thu Apr 11, 2024 12:26 pmThanks very much for the suggestions.
I found an extension that lets you put individual multistores into maintenance mode.
It's called Multistore Maintenance Switch and was easy to install and is working well:
https://www.opencart.com/index.php?rout ... n_id=39170
Thanks all !
And thanks for updating the thread.
Now please add [SOLVED] to the start of the topic title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: No registered users and 19 guests