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

Adding custom field to backoffice not working

Former Member
0 Likes
1,083

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi,

please check the following:

  • be sure to invoke reset everything (from the orchestrator) after the changes are done

  • be sure that the changes are in the config.xml (in orchestrator you should be able to filter configurations)

  • be sure that the widget uses the component mentioned (create-wizard) - it is visible in the widgets.xml settings

If none of that helps I suggest getting in touch with our support since this is for (almost) sure a problem with your configuration.

Cheers, Wojtek