on ‎2018 Jul 24 8:55 AM
Hi experts,
i need to override the ootb backoffice configuration file in my backoofice extention.
OOTB Extension configuration:
<context type="Consignment" component="warehousingbackoffice-refine-by">
<rb:refine-by xmlns:rb="http://www.hybris.com/warehousingbackoffice/config/warehousingrefineby">
<rb:field-list name="fieldList">
<rb:search-field name="status" label="warehousingbackoffice.refineby.consignment.status">
<rb:search-value label="warehousingbackoffice.refineby.consignment.tobeprocessed">
<rb:group-member-value value="READY"/>
<rb:group-member-value value="READY_FOR_PICKUP"/>
<rb:group-member-value value="READY_FOR_SHIPPING"/>
</rb:search-value>
<rb:search-value label="warehousingbackoffice.refineby.consignment.completed">
<rb:group-member-value value="SHIPPED"/>
<rb:group-member-value value="PICKUP_COMPLETE"/>
</rb:search-value>
<rb:search-value uniqueValue="CANCELLED" label="warehousingbackoffice.refineby.consignment.cancelled"/>
</rb:search-field>
<rb:search-field name="deliveryMode" label="warehousingbackoffice.refineby.consignment.deliverymode">
<rb:search-value label="warehousingbackoffice.refineby.consignment.shipping">
<rb:group-member-value value="standard-gross"/>
<rb:group-member-value value="standard-net"/>
<rb:group-member-value value="premium-net"/>
<rb:group-member-value value="premium-gross"/>
<rb:group-member-value value="free-standard-shipping"/>
</rb:search-value>
<rb:search-value uniqueValue="pickup" label="warehousingbackoffice.refineby.consignment.pickup"/>
</rb:search-field>
</rb:field-list>
</rb:refine-by>
</context>
I need to override the the above configuration only changing the below delivery modes in my extension configuration file.
<rb:group-member-value value="standard-gross"/>
<rb:group-member-value value="standard-net"/>
<rb:group-member-value value="premium-net"/>
<rb:group-member-value value="premium-gross"/>
<rb:group-member-value value="free-standard-shipping"/>
Please any one help and guide me .
Request clarification before answering.
Hello,
The merging mechanizm is described here https://help.hybris.com/6.7.0/hcd/8bd51bcd8669101486cec32d579bb2c2.html .
You can add merge-mode argument in your attributes in order to merge your configuration.
I have prepared example how it would work in your case. It may not be a final solution but good point to start with.
Please check it and follow by instruction to adjust it.
<context type="Consignment" component="warehousingbackoffice-refine-by" merge-by="module">
<rb:refine-by xmlns:rb="http://www.hybris.com/warehousingbackoffice/config/warehousingrefineby">
<rb:field-list name="fieldList" merge-mode="MERGE">
<rb:search-field name="deliveryMode" label="warehousingbackoffice.refineby.consignment.deliverymode" merge-mode="MERGE">
<rb:search-value label="warehousingbackoffice.refineby.consignment.shipping" merge-mode="REPLACE">
<rb:group-member-value value="standard-gross"/>
<rb:group-member-value value="standard-net"/>
<rb:group-member-value value="premium-net"/>
<rb:group-member-value value="premium-gross"/>
<rb:group-member-value value="free-standard-shipping"/>
</rb:search-value>
<rb:search-value uniqueValue="pickup" label="warehousingbackoffice.refineby.consignment.pickup"/>
</rb:search-field>
</rb:field-list>
</rb:refine-by>
</context>
Cheers Tomek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.