Wish to configure the ecommerce orders form.

Helpdesk PING asked on December 13, 2018 22:17

I would like to modify the ecommerce orders application and remove some items from the UI. I would like to remove the delete and arrow buttons from the UI. How can this be done.

Thank you,

Eric

Recent Answers


Brenden Kehren answered on December 13, 2018 22:42

The best solution is to clone the controls in code and update the module definition within Kentico to point to those new code files.

Start with the /CMS/CMSModules/Ecommerce/Controls/UI/OrderList.ascx control. Clone this to your custom folder and make sure you modify the namespace and class name, if you don't you'll get build errors. From there, start making modifications to the code. Lastly, go to the Modules application and look for Ecommerce, then go to the User Interface tab and find the Orders node and modify the URL of the page (not user control) the orders link will load. This will require you to clone the /CMSModules/Ecommerce/Pages/Tools/Orders/Order_Listing.aspx page to your custom folder. Make sure you modify the control reference, namespace and class name in that page too.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on December 14, 2018 10:57

Might not serve your requirements, but a quick option could be to just deny 'modify data' permission to a role that you only want to view the Orders.

permission

It will still show the button, but give a permission warning. The downside is that you also are not able to edit any other property of the order. And will only work if you want to restrict non global administrators.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.