1. Home
  2. General info
  3. How to show/hide the Store link from the backend menu

How to show/hide the Store link from the backend menu

 

You can show/hide the Store entry from the backend area of the application by editing the file web/apps/common/config/params-local.php. If the file does not exist, you will have to create it.

The default file content should look like:

<?php

/* The option is inherited from params.php */
return [];

Which means the store is enabled.

To disable the store, your file should look like:

<?php

/* The option is inherited from params.php */
return [
    /* Store is disabled */    
    'store.enabled' => false,
];

Then if you want to enable it at some point, simply do:

<?php

/* The option is inherited from params.php */
return [
    /* Store is enabled */    
    'store.enabled' => true,
];

 

Updated on May 16, 2019

Was this article helpful?

Related Articles