Skip to Content
0
Former Member
Jan 23, 2017 at 09:00 AM

Backoffice wizard customization

571 Views

  1. I created a custom ybackoffice extension with extensioninfo.xml having requires "backoffice"

  2. I have created a custom product itemtype that extends product with few custom attributes and have created a wizard for the same as below

  3.   <wz:flow xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config" id="EventWizard" title="create.event.title">
             <wz:prepare id="eventPrepare">
                 <wz:initialize property="newEvent" type="ctx.TYPE_CODE"/>
                 
             </wz:prepare>
             <wz:step id="step1" label="create.event.basic.label" sublabel="create.event.basic.sublabel">
                 <wz:content id="step1.content">
                     <wz:property-list root="newEvent">
                         <wz:property qualifier="code"/>
                         <wz:property qualifier="catalogVersion"/>
                         <wz:property qualifier="approvalStatus"/>
                         <wz:property qualifier="eventStatus"/>
                         <wz:property qualifier="eventType"/>
                         <wz:property qualifier="eventOutcome"/>
                         <wz:property qualifier="industryType"/>
                     </wz:property-list>
                 </wz:content>
                 <wz:navigation id="step1.navigation">
                     <wz:cancel/>
                     <wz:next visible="newEvent.catalogVersion != null and newEvent.approvalStatus != null and newEvent.eventStatus != null and newEvent.eventType != null and newEvent.eventOutcome != null and newEvent.industryType != null"/>
                 </wz:navigation>
             </wz:step>
             <wz:step id="step2" label="create.event.date.label" sublabel="create.event.date.sublabel">
                 <wz:content id="step2.content">
                     <wz:property-list root="newEvent">
                         <wz:property qualifier="eventTimeStart"/>
                         <wz:property qualifier="eventTimeEnd"/>
                         <wz:property qualifier="eventCancellationDate"/>
                         <wz:property qualifier="registrationStartDate"/>
                         <wz:property qualifier="registrtionClosingDate"/>
                     </wz:property-list>
                 </wz:content>
                 <wz:navigation id="step2.navigation">
                     <wz:cancel/>
                     <wz:next visible="newEvent.eventTimeStart != null and newEvent.eventTimeEnd != null and newEvent.eventCancellationDate != null and newEvent.registrationStartDate != null and newEvent.registrtionClosingDate != null"/>
                 </wz:navigation>
             </wz:step>
             <wz:step id="step3" label="create.event.mandate.label" sublabel="create.event.mandate.sublabel">
                 <wz:content id="step3.content">
                     <wz:property-list root="newEvent">
                         <wz:property qualifier="eventOrganizationType"/>
                         <wz:property qualifier="eventCoordinator"/>
                         <wz:property qualifier="publicityMode"/>
                         <wz:property qualifier="eventCategory"/>
                         <wz:property qualifier="eventSegment"/>
                         <wz:property qualifier="targetAudience"/>
                         <wz:property qualifier="waitlistAllowed"/>
                         <wz:property qualifier="corpRegister"/>
                         <wz:property qualifier="published"/>
                         <wz:property qualifier="targetNationality"/>
                     </wz:property-list>
                 </wz:content>
                 <wz:navigation id="step3.navigation">
                     <wz:cancel/>
                     <wz:done>
                         <wz:save property="newEvent"/>
                     </wz:done>
                 </wz:navigation>
             </wz:step>
         </wz:flow>
     </context>
    
    
  4. Now after ant clean all, update on the system. i am getting the wizard of the product (parent) when i click on "+" create on the custom product. As shown in attached image alt text Can any one help on resolving this issue? is this because of merging mechanism not properly handled or do i need to comment out the relation with backoffice or platform backoffice to achieve the same ?

Attachments

7581-capture.png (66.1 kB)