且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Prestashop 1.7管理员主题CSS覆盖

更新时间:2023-02-22 16:20:12

如果要隐藏菜单/ sub-menus,您可以在表 [PREFIX] _tab 中设置数据库的可见性(默认为 ps_tab )。

If you want to hide menu/sub-menus, you can set the visibility from within the database in the table [PREFIX]_tab (default is ps_tab).

顶部菜单的 id_parent 的值为0,子菜单的值大于0。

The top menu has 0 for id_parent and submenus has a value superior to 0.

例如,我有这个车辆文件自定义模块:

By example, I have this vehicle file custom module:

如果我将具有 class_name V2vVehicleFile 的行设置为 active = 0 (false),然后整个菜单(包括其子菜单)消失。

If I set the row with the class_name "V2vVehicleFile" to active = 0 (false), then the whole menu (including its submenus) disappear.

现在,如果我将具有 class_name AdminVehicleMake 的行设置为 active = 0 (false),则只有名为 车辆制造的子菜单消失。

Now, if I set the row with the class_name "AdminVehicleMake" to active = 0 (false), then only the submenus named "Vehicle make" disappear.