$wsMaintenance module, you can check whether the shop is in maintenance mode. This way you can display a maintenance page to visitors or temporarily disable certain functions. In this section, you will learn how to query the maintenance mode in the frontend.
Module overview
Example / excerpt of$wsMaintenance
ƒ() denotes a function.
Methods overview
| Method | Return type | Description |
|---|---|---|
isMaintenanceMode() | bool | Checks whether the shop is currently in maintenance mode. |
Templates
The maintenance mode check can be used on any template. It is typically used to display a maintenance page or to disable certain functions.Variables
No variables are available for$wsMaintenance.
Methods
$wsMaintenance.isMaintenanceMode()
Checks whether the shop is currently in maintenance mode. Signature$wsMaintenance.isMaintenanceMode()
Return valuebool - true if maintenance mode is active, otherwise false.
Example that checks whether maintenance mode is active.
Actions
No actions are available for$wsMaintenance.
