on 2018 Jan 11 7:48 AM
Hi,
I need to remove the create-wizard context config of AbstractPromotionRestriction from Backoffice Config xml that is getting injected from PromotionsBackOffice Extension.
I need to remove the context as the custom promotion creation is not proper in backoffice if we have the create wizard. Only on removal of the context(tried in direct config xml from Orchestrator), am able to create the custom promotions in backoffice without error.
Please suggest.
Thanks
Request clarification before answering.
Hello,
Have you tried by adding merge-mode="remove" in your create-wizard context. Define the entire context in your custom backoffice extension and try below code.
<context merge-by="type" type="AbstractPromotionRestriction" component="create-wizard" merge-mode="remove">
<wz:flow xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config" id="PromotionRestrictionWizard" title="create.title(ctx.TYPE_CODE)">
<wz:prepare id="PromotionRestrictionPrepare">
<wz:initialize property="newPromotionRestriction" type="ctx.TYPE_CODE" />
</wz:prepare>
<wz:step id="step1">
<wz:content id="step1.content">
<wz:property-list root="newPromotionRestriction">
<wz:property qualifier="descriptionPattern" />
</wz:property-list>
</wz:content>
<wz:navigation id="step1.navigation">
<wz:cancel />
<wz:done>
<wz:save property="newPromotionRestriction" />
</wz:done>
</wz:navigation>
</wz:step>
</wz:flow>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, merge-mode="remove" worked for me for below snippets -
<context merge-by="principal" component="explorer-tree" principal="admin">
<explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree">
<explorer-tree:navigation-node id="hmc_treenode_order">
<explorer-tree:type-node code="FraudReport" id="FraudReport" merge-mode="remove"/>
</explorer-tree:navigation-node>
</explorer-tree:explorer-tree>
</context>
May be you can give a try to this.
User | Count |
---|---|
11 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.