cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

product search in backoffice using super to superCategories

Former Member
0 Likes
451

HI All,

Facing issue in product advance search in Backoffice , getting zero results if in supercategories I use super to supercategory.

Create Categories

INSERT_UPDATE Category;code[unique=true];$catalogVersion;supercategories(code,$catalogVersion)

;categories;;

;clothes;;categories;

INSERT_UPDATE Product;code[unique=true];$catalogVersion;unit(code);supercategories(code,$catalogVersion) ;300441142;;pieces;clothes

If in Supercategories attributes I search for categories m getting zero results.

If any solution, in this case, would be appreciated.

Thanks Upfront,

Accepted Solutions (0)

Answers (2)

Answers (2)

Marko_salonen
Contributor
0 Likes

Make sure to use [unique=true] for the code

INSERT_UPDATE Product;code[unique=true];$catalogVersion;unit(code);supercategories(code[unique=true],$catalogVersion) ;300441142;;pieces;clothes

Former Member
0 Likes

Hi Jagnya,

I tried to reproduce your issue by taking following steps (please correct me, if I have done something diffrently):

  • Import new supercategory and new category (set structure) via ImpEx Import in hac

  • Import new product (set of which category)

In my case: Supercategory is categories1 Subcategory is clothes1

  • In Backoffice using advance search: set Supercategories Attribute Contains clothes1

  • click plus sign to add criterion

  • click Search Button

  • get no results

If process I conducted is the same as yours, I think it is caused by lack of any subcategory attached to clothes1. You can think about structure as about pyramid – there is nothing below clothes1, so clothes1 is not Supercategory to any category. In other words there is not any existing category that has clothes1 as its Supercategory.

Hope that clarifies the current situation,