cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable the OOTB "Add New Product" Button in "catalog" perspective of ProductCockpit

former_member649864
Discoverer

We have requirement of disabling the OOTB "Add New Product" Button in "catalog" perspective of ProductCockpit based on the user roles defined in our system.

Please suggest any solution possible through impex or code level also its fine.

Accepted Solutions (0)

Answers (1)

Answers (1)

geffchang
Active Contributor
0 Kudos

Try this impex, which makes Product read-only (i.e. disable create). Change `custom-backoffice-role` with the role that you want. `BackofficeRole` can also be changed to `UserGroup`.

$START_USERRIGHTS;;;;;;;;; 
Type;UID;MemberOfGroups;Password;Target;read;change;create;remove;change_perm 
BackofficeRole;custom-backoffice-role;;;;;;;; 
;;;;Product;;;-;;; 
$END_USERRIGHTS;;;;;


Let me know if it works. If it does, don't forget to upvote and accept the answer.

former_member649864
Discoverer
0 Kudos

Thanks for your input. I have tried the above script by change the role and user group but it is not working.

We need the script to disabling the below button in Product cockpit but not of Backoffice.