Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4301 มุมมอง

When I search a product on the ecommerce, its price is shown in the propositions, I would like to hid this field. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Hugo, 

You can edit the view "website_sale.website_sale_products_search_box" to select the value you want to display on the product search box. 


Best

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hey Hugo Baivier,

May be you can hide price from search-bar using change in website_sale_utils.xml of website_sale like below
Here I hide the product price from search-bar using this.
You can refer this example.

class="dropdown-menu show w-100">
No results found. Please try another search.

t-att-href="product['website_url']" class="dropdown-item p-2 text-wrap">


class="flex-shrink-0 o_image_64_contain"/>








Thanks & Regards,

Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Thomas,
This doesn't seem to work in Odoo v15. No website_sale_products_search_box in the View. Any workaround?

อวตาร
ละทิ้ง

Hello MarianM,

The views have changed in V15.
If you want to remove the prices from the search bar you should edit the "Search Box" view and set t-valuef="false" for the line 11 for "display_details"

like that :
<t t-set="display_detail" t-valuef="false"/>

best

Thank you, Thomas. That worked.
We have one last issue with the prices. Perhaps you can advise what I'm missing. We use the ecommerce exclusively for B2B and every customer has his/her own price list defined. This works in the backend as expected, when creating quotes for customers. But when the customer logs into the portal, the prices are not the same as in the customer price list.
I cannot find the answer to this.
Any help is greatly appreciated. Thanks Thomas.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 25
4685
1
เม.ย. 25
8246
0
มี.ค. 25
1468
1
มี.ค. 25
30
0
มี.ค. 25
1261