on 2018 Apr 20 11:41 AM
I have Customer and Employee type. Both extends from User. User have fields: defaultPaymentAddress and defaultShipmentAddress (it's Address type, not string).
The configuration in backoffice-config.xml for Customer and Employee for these fields is the same
When I edit employee in backoffice, I see this fields (and I don't configure it in backoffice-config.xml). But when I edit a customer in backoffice, these fields don't view. Why? Can anyone help me, how I can view this fields for customer type?
P.S. I try to configure this fields, but it doesn't work.
P.S.S
<context type="Customer" component="editorAreaDynamicForms" merge-by="module">
<df:dynamicForms>
<df:attribute id="snapshot-dsAddress" qualifier="defaultShipmentAddress" triggeredOn="defaultShipmentAddress" visibleIf="defaultShipmentAddress!=null" />
<df:attribute id="snapshot-dpAddress" qualifier="defaultPaymentAddress" triggeredOn="defaultPaymentAddress" visibleIf="defaultPaymentAddress!=null" />
.
.
.
</df:dynamicForms>
</context>
This config i found in ext-backoffice. When i removed this config for editorAreaDynamicForms - fields was display. But it's bad practice. I need remove this editorAreaDynamicForms in my custom extension for backoffice. I try like this
<context type="Customer" component="editorAreaDynamicForms" module="customersupportbackoffice">
<df:dynamicForms>
<df:attribute id="snapshot-dsAddress" qualifier="defaultShipmentAddress" merge-mode="remove"/>
<df:attribute id="snapshot-dpAddress" qualifier="defaultPaymentAddress" merge-mode="remove"/>
</df:dynamicForms>
</context>
But it don't work.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.