phpzen-cart

How to turn off global features in zen carts options_name_manager.php


I have been looking through code and forums for hours. Does any one know how to make it so that by default the Global features drop down is set to off on the options_name_manager file so that the global features are hidden. I have a customer who doesn't need to see those options and so I want to hide it.

I have done some extensive googling and come up blank. Any help is appreciated. I have even tried hard coding the variable which changes the drop down but doesn't hide the section that it needs to!!


Solution

  • I admin/options_name_manager.php on line 13 in 1.3.9 (right above where the $_GET['action'] is done) do this:

      $_SESSION['option_names_values_copier'] = 0;
    

    -- updated based on changed requirements

    If you want to default it to off but retain the ability to change it, do something more like this:

    if (!isset($_SESSION['option_names_values_copier'])) { 
       $_SESSION['option_names_values_copier'] = 0;
    }
    

    Then the setting will only be made if it isn't already set.