Skip to Content
0
Former Member
May 18, 2018 at 03:34 PM

Adding custom field to backoffice not working

772 Views

Hi,

I am trying to add a new field to backoffice create wizard for category, but I am not seeing the changes take place. Here's a list of steps I took:

  1. ant extgen with new ybackoffice extension

  2. modified the localextensions to include new backoffice ext (this shows in update system, so i know its loaded properly)

  3. modified the new extension backoffice-config.xml as followed, copied from pcmbackoffice (seoID being the custom field needed in the wizard)

    enter code here

      <context type="Category" component="create-wizard">
             <wz:flow id="CategoryWizard" title="create.title(ctx.TYPE_CODE)" xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config">
                 <wz:prepare id="categoryPrepare">
                     <wz:initialize property="newCategory" type="ctx.TYPE_CODE"/>
                     <wz:assign property="newCategory.catalogVersion" value="ctx?.actionContext?.catalogVersion"/>
                     <wz:assign property="newCategory.supercategories" value="ctx?.actionContext?.supercategories"/>
                 </wz:prepare>
                 <wz:step id="step1" label="name.your(Category)">
                     <wz:content id="step1.content">
                         <wz:property id="code" qualifier="newCategory.code" readonly="false"/>
                         <wz:property id="name" qualifier="newCategory.name" readonly="false"/>
                         <wz:property id="catalogVersion" qualifier="newCategory.catalogVersion" readonly="false"/>
                         <wz:property id="supercategories" qualifier="newCategory.supercategories" readonly="false"/>
                         <wz:property id="seoID" qualifier="newCategory.seoID" readonly="false"/>
                     </wz:content>
                     <wz:navigation id="step1.navigation">
                         <wz:cancel/>
                         <wz:done>
                             <wz:save property="newCategory"/>
                         </wz:done>
                     </wz:navigation>
                 </wz:step>
             </wz:flow>
         </context>
    
    
  4. Restarted server after ant clean all, even updated system with new ext checked.

For some reason it doesn't show. I've also tried merge by type and merge by module, neither seem to make a difference. Any missing steps or help would be appreciated.