Monday, November 15, 2021
1 change · master
Resolved issues and error corrections
The eCommerce search bar now handles products assigned to more than one public category without crashing. Category labels are shown correctly as separate links and are no longer incorrectly treated as searchable product text, improving the shopping search experience.
Original PR description
This commit fixes an issue when there are several public categories on a single product. Categories are shown side-by-side under product name in the search bar. This commit also fixes the issue where…
This commit fixes an issue when there are several public categories on
a single product. Categories are shown side-by-side under product name
in the search bar.
This commit also fixes the issue where the `Category:X` text is matched
and highlighted whereas the search test is not used to match the product
categories.
Steps to reproduce :
- Install eCommerce
- Add several eCommerce Categories to a product
- Go to shop
- Search for the product in the searchbar
- Traceback
Current Behavior :
- Traceback when generating the results in the quick search bar.
It's not expected to have several categories in the current
implementation.
- If all products have a unique category, then the text in
`Category:X` is matched and highlighted.
Desired Behavior :
- No traceback
- When there are multiple categories, an extra link should be
present on each category rather than a unique link on all
categories.
- The product categories don't have to be matched.
Related PR: #79258
task-2680726
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr