Is there a way to remove the Categories from the ecommerce search results? Some of our products are in 100s of different categories making results extremely long.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
2
الردود
208
أدوات العرض
Hi, you have two options to address this:
1. For a quick solution, navigate to `Settings -> Technical -> Views` and search for `'product_category_extra_link'`. Then, comment out all existing code and replace it with just a `<t/>` tag.
2. Alternatively, you can override the `def _search_get_detail()` method. Within this method, change `with_category = options['displayExtraLink']` to `with_category=False`. This will prevent customers from seeing categories in the website search results.
You'll find the relevant GitHub code here for reference:

In my opinion, choosing Option 2 would be better.
Hello Sean Westfield,
You can hide a category from specific websites by using the Websites field.
- Go to Website → Products → eCommerce Categories .
- Open the category you want to control.
- In the Websites field ( website_id ), add the website(s) where this category should not be visible .
- Save.
Result:
The category will be restricted based on the websites selected in the field, and it will no longer appear on the websites you added.
This keeps the search results clean so users only see directly relevant items.
If you have any questions, feel free to reach out to us
Hope this helps!
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
7
أكتوبر 25
|
32865 | ||
|
|
2
يوليو 25
|
3073 | ||
|
|
0
مارس 25
|
1980 | ||
|
|
1
يوليو 24
|
2787 | ||
|
|
2
أبريل 24
|
4628 |
Thanks for the reply. I still want them shown on the necessary pages, I just do not want them shown in the search results.