logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
ray22901031  
#1 Posted : Friday, October 30, 2020 10:34:05 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
Just want to make sure I got it right, where is the view file for the left-hand side of the admin screen in the backend? In other words, the dashboard options, like manage, catalog, people, marketing, reports etc...

Thanks

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Friday, October 30, 2020 10:40:33 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
There is no view file for the left side navigation menu. We are generating the menu HTML from code.
Please look into this section of code in

1- Website\Areas\Admin\Views\Shared\_Layout.cshtml

Code:
<!-- Navigation -->
@Html.Action("Navigation", "Dashboard")


2- Website\Areas\Admin\Controllers\DashboardController.cs

Search for

Code:
public ActionResult Navigation()
ray22901031  
#3 Posted : Friday, October 30, 2020 11:02:10 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
That was quick, where are the admin groups rights settings being created? in other words the settings for, catalog admins, Junior admin, order admins etc ...

Thanks
shari  
#4 Posted : Friday, October 30, 2020 11:14:36 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Please open the file \Website\App_Data\adminmenu.xml

roles="System,Admin,Junior Admin,Manage Catalog,Manage Orders"
E.g
Code:

<menuItem title="Manage" icon="fa fa-tasks" roles="System,Admin,Junior Admin,Manage Catalog,Manage Orders" description="The Management menu is your main work area, you will be able to manage your daily activities here.">
ray22901031  
#5 Posted : Friday, October 30, 2020 11:32:24 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
Again, thank you for your quick reply.

I am going to assume that by adding and removing values in the "roles=" I can manipulate the menu structure?
I believe this is correct.

That being said, instead of modifying the original file, is there a way that this file can be overridden by including it in a theme?

My last question would be, if I were to create a new role, example "ArsOrderManager", I can add it here, is this a correct statement?

I understand that there will be other issues with the "ArsOrderManager" role being added to the backend.

I welcome your feedback as this is extremely important to us.

Many thanks for your quick reply
shari  
#6 Posted : Friday, October 30, 2020 11:39:36 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Quote:
That being said, instead of modifying the original file, is there a way that this file can be overridden by including it in a theme?


This is not possible in the current version. You can take a backup of the file and edit the original file to achieve your requirements.

Quote:
My last question would be, if I were to create a new role, example "ArsOrderManager", I can add it here, is this a correct statement?


Yes, As far as backend implementation is correct, you can add this in the XML file.

ray22901031  
#7 Posted : Friday, October 30, 2020 11:59:05 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
That is great news, one last concern. In the admin area when you click manage, and then you click orders, it displays a grid. A user is allowed to check mark an order and then using the update drop-down button, they have various options. What would be the best way eliminate or disable, the delete and export options?

Again many thanks
shari  
#8 Posted : Tuesday, November 3, 2020 10:29:42 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
You can remove the options from UI. Please follow the steps

1- Open file Website\Areas\Admin\Views\Orders\_ListOrders.cshtml
2- Search for

Code:
gridActions.Add(new GridAction("EXPORT", "Export selected"));
gridActions.Add(new GridAction("DELETE", "Delete selected"));


3- Comment out these lines or remove these lines. Or you can add logic to show/hide the options depending on the user role.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.