Disable Some Settings (v. 2.72 - 2.92)

Important! This method will stop most end users from changing the fields. However, a client who can access DOM developer tools to hack the HTML and CSS source will still be able to make changes.

The "Permissions" settings (found on the initial page of the storeadmin when logged in as a master administrator) allow resellers to limit what features a client can access. In particular, the 'Advanced Settings' permissions (under 'Site Settings' in 'Administration') tells the system whether the client can change the 'Advanced' settings or the Web Site URL. If the permission is set to 'No', the client will not be able to change the URL or advanced settings.

If you want to still show all of the settings, but keep clients from changing them, you can use a little fancy CSS to limit them:

  1. Open the variables.php file in the /storeadmin/ folder.

  2. Just under the code:

    require_once("includes/open.php");

    add:

    $advclass = ($set_master_key == "yes") ? '' : ' class="masteronly" tabindex="-1"';
  3. Find the code (around line 326):

    // ALL OTHER VARIABLES
  4. Under that line, add:

    to any input, select or textarea field that you want to display but keep clients from changing.

    Example #1) To display the Catalog Page field, but do not allow clients to modify it, change:

    ">

    to

    ">

    Example #2) To display the Page Extension field, but do not allow clients to modify it, change:

    >

    Example #3) To display the Meta Description field, but do not allow clients to modify it, change:

    to

  5. Open the style.css file in the /includes/ folder of the /storeadmin/ folder, add:

    .masteronly {
    border: none !important;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    }

    to the bottom of the file.

  6. Log in as a master administrator, select 'Set Permissions', and make sure that the 'Advanced Settings' permissions are set to 'Yes'. (Otherwise, the entries will not show.)