Hello,
I have a weird issue with my CatalogItems, I have catalog items that I am iterating through and checking to see if they are regular, bundle or container items by do this:
for(int i = 0; i < result.Catalog.Count; i++){ if(result.Catalog[i].Bundle == null && result.Catalog[i].Container == null){ Debug.Log(result.Catalog[i].ItemId); } if(result.Catalog[i].Bundle != null){ Debug.Log(result.Catalog[i].ItemId); } if(result.Catalog[i].Container != null){ Debug.Log(result.Catalog[i].ItemId); } }
The problem though is that I am getting items ids that are not in Bundles or Containers returning that they are Bundles or Container items which is messing up the flow. Is this a bug or am I retrieving my categories wrong?
PS: I am using the Admin API.
Thanks,
jrDev