on 02-13-2018 5:57 PM
I'm trying to modify the simple search behaviour for the promotions. I want to search only on the 'name' field. I did this:
<context type="PromotionSourceRule" component="simple-search">
<yss:simple-search xmlns:yss="http://www.hybris.com/cockpitng/config/simplesearch">
<yss:field name="name"/>
</yss:simple-search>
</context>
but the problem is that the field 'name' is localized and my simple search now is searching only for the english language.
I have also german and dutch localization and I would to search also in these languages.
Any idea?
Hi Irene,
What you are observing right now is correct behavior. If you configure advanced search widget to use localized field in simple search mode (by specifying simple-search
configuration) it will make it in simplest possible way, i.e. search only by active language. That's the language you choose on login page. If you choose e.g. espanol during login the search will use values for es
locale. If you want to choose the language for which you want to run the search you have to switch the widget to advanced search mode.
Cheers,
Marcin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe OOTB doesn't support this. However you can create your own custom one. For reference you can check "LocalizedSimpleEditor".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , you can do it by defining new attribute name (locale ) in PromotionSourceRule itemtype , or you can create your own custom simple Search Widget
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.