Administrative menu Bitrix. We leave only "Orders"
Rus
Eng
Административное меню Битрикс. Оставляем только "Заказы"

All English-language materials have been translated fully automatically using the Google service

On assignment, I had to leave only the "Store" tab in the admin area, and in it "Orders" for a specific group of users.

In the php.init file, add the OnBuildGlobalMenu

event handling
AddEventHandler("main", "OnBuildGlobalMenu", "MyOnBuildGlobalMenu");
function MyOnBuildGlobalMenu(&$aGlobalMenu, &$aModuleMenu)
{
    global $USER;
    if (CSite::InGroup([6])) {
        unset(
            $aGlobalMenu["global_menu_desktop"],
            $aGlobalMenu["global_menu_content"],
            $aGlobalMenu["global_menu_landing"],
            $aGlobalMenu["global_menu_marketing"],
            $aGlobalMenu["global_menu_settings"],
            $aGlobalMenu["global_menu_marketplace"],
            $aGlobalMenu["global_menu_services"],
            $aGlobalMenu["global_menu_statistics"]
        );

        $destroy = ["global_menu_desktop", "global_menu_content", "global_menu_landing", "global_menu_marketing", "global_menu_settings", "global_menu_marketplace", "global_menu_services", "global_menu_statistics"];

        foreach ($aModuleMenu as $k => $v) {

            /* Disable all submenus in orders */
            if ($v['parent_menu'] == 'global_menu_store')
                unset($aModuleMenu[$k]['items']);

            if (in_array($v['parent_menu'], $destroy) || $v['text'] == 'Покупатели') {
                unset($aModuleMenu[$k]);
            }

        }
    }

}

This is not enough, because the link "Go to Bitrix24" will remain in the left menu, and next to the orders "Product catalog"

Create admin_header.php file in php_interface and add

<?php

if(CSite::InGroup([6])){
    global $adminMenu;

    //Hide the button "Go to Bitrix24"
    unset($adminMenu->aGlobalMenu['global_menu_crm_site_master']);

    foreach ($adminMenu->aGlobalMenu['global_menu_store']['items'] as $k => $v){
        if($v['title'] != 'Список заказов'){
            unset($adminMenu->aGlobalMenu['global_menu_store']['items'][$k]);
        }
    }

    //Hide bread crumbs and a menu with a product catalog in the "Orders" submenu
    ?>
    <style>
        #main_navchain {display: none}
        .adm-detail-toolbar > a {display: none}
    </style>
    <?php
}

In orders, the user will still be able to go to the editing of the product, but I did not need to change it. If you know how to do this, then write)

Do not forget to set the access settings to the required user group in the "Access" tab

Main module: Change your profile
Online store: Order processing

Other access can be closed

You can also assign access to the corresponding order statuses in Store> Store settings> Statuses

The page looks like this:

 

Worth reading:

Comments

There are no comments yet, you can be the first to leave it

Leave a comment

The site uses a comment pre-moderation system, so your message will be published only after approval by the moderator

You are replying to a user's comment

Send

FEEDBACK

Email me

Are you developing a new service, making improvements to the existing one and want to be better than your competitors? You have come to the right place. I offer you a comprehensive studio-level website development. From me you can order design, layout, programming, development of non-traditional functionality, implementation of communication between CMS, CRM and Data Analitics, as well as everything else related to sites, except for promotion.

Contact, I will always advise on all questions and help you find the most effective solution for your business. I am engaged in the creation of sites in Novosibirsk and in other regions of Russia, I also work with the CIS countries. You will be satisfied with our cooperation

An error occurred while sending, please try again after a while
Message sent successfully

Phones

+7(993) 007-18-96

Email

info@tichiy.ru

Address

Россия, г. Москва

By submitting the form, you automatically confirm that you have read and accept the Privacy Policy site

Contact with me
Send message
By submitting the form, you automatically confirm that you have read and accept Privacy policy of site
Sending successful!
Thank you for contacting :) I will contact you as soon as possible
Sending failed
An error occurred while sending the request. Please wait and try again after a while or call my phone number