cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

override configuration editorAreaDynamicForms in backoffice for Customer type

Former Member
0 Likes
269

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.

Accepted Solutions (0)

Answers (0)