on 2018 Aug 22 9:40 PM
Request clarification before answering.
If you want to redefine this xml file you should:
Create an addon
Create an identical file to Customer_ReadonlyDetails_CockpitGroup.xml, make changes and place it in corresponding folder
Create an impex file to override the cscockpit impex file (projectdata_ui_components.impex) and add INSERT_UPDATE statements
Here you can find an example of redefining Wizard_CsTicket_CreateTicketPage1_CockpitGroup.xml, so just change it to your file and it should work: http://hshanbhag.blogspot.com/2016/06/hybris-cs-cockpit-add-custom-attribute.html
Hope that helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
As mentioned earlier, you should consider switching to backoffice, due to the fact cscockpit is deprecated. But for both of those if you want to add some new attributes to the Customer you should:
extend data model
extend DTO on facade level
add populator for your new attributes
Here's a great explanation of those steps: https://help.hybris.com/6.7.0/hcd/8bbdfe9286691014a741829ebffd8512.html . You should perform all steps until Extending the Data Transfer Object (DTO) for v2 (without it).
After doing that, you've got to take care of the front-end layer. If you choose to use cscockpit what you've got to do is go to the folder cscockpit->resources->cscockpit->import->config. In that folder you can find xml files specifying views in cscockpit. What you should look at are files starting with Customer... . For example the Customer_ReadonlyDetails_CockpitGroup.xml file is responsible for the view you've marked on your screenshot. And there you can add new properties to be displayed. Here's my example:
<list-view unassigned-group-name="Other">
<group name="General">
<property qualifier="Customer.type" visible="true"/>
<property qualifier="Principal.UID" visible="true"/>
<property qualifier="Customer.contactEmail" visible="true"/>
<property qualifier="Customer.customerID" visible="true"/>
<!-- I've added nickname and workOfficeAddress-->
<property qualifier="Customer.nickname" visible="true"/>
<property qualifier="workOfficeAddress" visible="true"/>
<property qualifier="Customer.creationTime" visible="true"/>
</group>
</list-view>
Do not forget to perform ant clean all and run an update with the cscockpit toggled.
As regards to the backoffice. The customersupportbackoffice extension is the successor of cscockpit. You can read about it here: https://help.hybris.com/6.0.0/hcd/f35d1ee8751b4988b6f0772a9c9682ea.html
Hope that helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, which version are you using? You should not do anything in the cscockpit because that is deprecated in the newer version and all functionality is available in different views in backoffice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.