Try our conversational search powered by Generative AI!

Readonly prices and inventories overviews in SKU edit view



I`m trying to make the following:

User has the ability to edit sku attibutes, but cant edit prices and inventories (we receive them from another system).

I`ve already read

and, but it seems that this approach is not working for prices and stocks.

Edited, Nov 09, 2018 12:53

There are several ways to do it, but there is no perfect way. You can simply implement IPriceDetailService and IInventoryService and only allows editing for special account (for example, the "integration account") - or no editing at all.

The ability to set access rights for prices and inventory is a feature in our backlog, but it will not happen anytime soon. 

Nov 09, 2018 14:43
Nov 09, 2018 14:58

Yes, something like that, you can always check the current user.

Nov 09, 2018 15:05

If I understand it correctly, you want to disable the Pricing and Inventories views? You would still be able to see the prices and invetories on the tabs in the All Properties view, but not edit them, since they are read only there.

Would an approach like this work?


Per Gunsarfs

Nov 09, 2018 15:06

I wanna remove or at least disable "Edit inventories" link(which is under the sku`s inventories table).

Nov 09, 2018 15:11

Good point, I didn't consider that. Just did a quick check even if the view is disabled the "Edit" link under the table is still there. Nothing will happen when you click on it, but I understand why you'd want to remove or disable it.

Nov 09, 2018 15:21

I noticed one interesting thing:

1) I opened sku edit view with admin account=> all properties are editable, "Edit prices" and "Edit inventories" are in place.

2) Then I copied this tab and logged out.

3) Logged in as user without access to this catalog.

4) Referesh first tab => all properties are disabled, and !!! there are no "Edit prices" and "Edit inventories" links in corresponding tabs, only tables.

So the problem is that I cant find the logic, why these links are supposed to be hidden in case of insufficient rights.

May be it`s possible to override something on C# code?

Edited, Nov 09, 2018 15:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.