如何在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!!

我一直在查看代码和论坛几个小时。 是否有人知道如何使它成为默认情况下,在options_name_manager文件中将全局功能下拉列表设置为off,以便隐藏全局功能。 我有一个客户谁不需要看到这些选项,所以我想隐藏它。 p>

我做了一些广泛的谷歌搜索并且空白。 任何帮助表示赞赏。 我甚至尝试过对变量进行硬编码,这会改变下拉但不会隐藏它需要的部分!! p> div>

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.