0

我在后台注册了几个产品,如果我直接从 HAC 执行灵活的搜索查询,我可以看到其中任何一个,但是,如果我使用 ProductService#getProductForCode 执行与我相同的查询,它不会找到任何产品。这怎么可能?

4

1 回答 1

1

您可以在致电之前尝试禁用搜索限制productService#getProductForCode

import de.hybris.platform.search.restriction.SearchRestrictionService;
......
searchRestrictionService.disableSearchRestrictions();
于 2021-06-16T13:52:22.897 回答