What is the best way to filter order by channel id?
var request = new QueryRequest(Solution.Instance.Languages.DefaultLanguageID, ECommerceSearchDomains.Orders, ModuleECommerce.Instance.AdminToken);
How should i add a filter tag to this request to filter by channel id
Litium version: [7.4.0]
Example:
request.FilterTags.Add(new Tag(TagNames.ActiveChannelSystemId, _requestModelAccessor.RequestModel.ChannelModel.SystemId));
You will need to add correct SystemId related to the Order.
I had this doubt because, i didnt see TagNames.ActiveChannelSystemId in Litium.Foundation.Modules.Ecommerce.Search.TagNames
Yes TagNames is coming from:
Litium.Foundation.Modules.ProductCatalog.Search
ChannelId
is not indexed for Orders. Please, file a bug on docs-site.
If you are in hurry you can use an IIndexingProviderPreProcessor
on the same way as MostSoldIndexingProviderPreProcessor
from accelerator and in that fetch the order and add your own property for the channelId.
1 Like
Sure. I will post a bug on doc site
system
Closed
October 29, 2020, 11:08am
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.