Summary
If we have a banner for a department and another one for a category inside this department, the banner query won't respect the specificity of the category tree, we will always get the first one of the API
This is applied to the entire category tree or specification levels
Simulation
- Go to: /admin/search/banners/
- Create a banner for a department (it should be created first)
- Create a banner for a category inside this department
- Go to the category page (client's site)
- It will match both and will return the first one to be shown
Workaround
Create banners for the more specific ones first and after that for the more generic ones. Example: Create banners first for subcategories first, then categories, and then department
OR
Create all banners that you want to use, and then, deactivate and activate the more generic banners following the rule that I shared previously. Example: Deactivate and activate Subcategories, then Categories, and then Departments
it will guarantee that the most generic banners will be displayed as the last one in the API response