Try our conversational search powered by Generative AI!

Edit View & Add more Columns

Vote:
 
Hey Guys, i would like to know how can we edit the default view by EPI for (Viewing purchase orders by date or status) page and add some more/addtional data on the view for it to display, pls help thanks
#136746
Sep 17, 2015 16:39
Vote:
 
This view is In the left navigation menu, you can click on the nodes below Purchase Orders and Purchase Orders by Status. For example, clicking on Purchase Orders > Today will show the orders created today only on the right window. using episerver Version: 7.10 (build: 3)
#136747
Sep 17, 2015 16:42
Vote:
 

Within the Shared/Apps folder of Commerce Manager, there are a series of XML UI config files and user controls which power the Commerce Manager UI.

In some cases, you can customize the XML configuration file directly to hide or show additional columns within the list views. The config file you are looking for is under:

Shared\Apps\Order\Config\View\Grids\Order-List.xml

Once you assess whether or not you can add or remove items directly from this configuration file, you may have to create additional user controls to load external data or related data to display in that list.

One such example in that file is the Order Status column - you can see that the out of the box code is loading a built in EPiServer user control which is in a nearby folder:

					<Column width="150" allowSorting="true" dataField="Status"  headingText="{SharedStrings:Status}" Align="Center" columnType="CustomTemplate">
						<Template id="OrderStatusTemplate" controlUrl="GridTemplates/OrderStatusTemplate.ascx"></Template>
					</Column>

Thus, you can take the same route to add additional columns by creating your own user controls and referencing them in the XML configuration files. These controls could extend existing EPiServer Commerce controls, or be entirely custom written.

Once you have these customizations, it's important to manage their deployment (this depends on if you have automated Commerce Manager or not) and make sure you keep track of them going forward if you upgrade.

This article has some great details on common customizations:

http://world.episerver.com/articles/Items/Customizations-of-EPiServer-Commerce-Manager-/

Hope this helps,

/Matt

#137708
Edited, Sep 20, 2015 18:04
* 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.