on ‎2018 Nov 29 3:20 PM
While store dropdown change there is a piece of code in Hybris OOTB in commercesearchbackoffice extenstion in the class "CategoryTreeController.class[handleNewSite(SiteData newSiteData)] the below condition will always fail because the "newSiteData" & siteData" will not satisfy at any point.
if (this.siteData != null && StringUtils.equals(this.siteData.getSiteId(), newSiteData.getSiteId())) {
So the setCatalogId in the "category" object will be null always.So the next if condition will be satisfy and the setCatalogId is hard-coded to "GLOBAL" and setCategoryName =Global.PFB for the code
if (this.categoryData != null && this.categoryData.getCatalogId() == null) { this.categoryData.setCategoryId("GLOBAL"); this.categoryData.setCategoryName(this.getLabel("global")); this.setCategoryPath(); }
I dont have a CategoryId/CategoryName with GLOBAL/Global.SO can you please help me on this issue.
Is it mandatory that the system should have a CategoryId as "GLOBAL" ? Can you help me on this issue ?
Request clarification before answering.
I faced the same error with hybris 6.5 on Product backoffice cockpit. It happens as the hybris creates solr query starting from its parent category. As on product cockpit the parent link is GLOBAL it search the category name as GLOBAL.
Workaroun Solution: Create a dummy category named GLOBAL.
Hope it will resolve the issue. Thanks, Hamid
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 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.