is it possible to hide the prices of the variants? (example + 12 €)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi, It is possible to do this even out of the box without custom code. Please review the following Post.
https://www.odoo.com/forum/help-1/hide-extra-price-badge-on-website-228049
you can try like this in odoo version 10:
in xml file
<data inherit_id="website_sale.product_variants">
<xpath expr="//span[@class='badge']" position="replace">
<span class="badge tr_hide" t-if="variant_id.price_extra">
<t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" style="white-space: nowrap;" t-options="{ "widget": "monetary", "from_currency": product.currency_id, "display_currency": website.currency_id }"/>
</span>
</xpath>
</data>
in css :
.tr_hide{
display: none !important;
}
It will hide the price from variant
Hello,
Yes, it is possible.
You can do that by append attribute "invisible" in the XML tag.
Check the following codes for hiding, the XML tags in Form, Tree, Kanban Views.
Code is working in my environment. Maybe some simple changes needed for working in your environment. (Mostly in Kanban view)
Anyway, you will get an idea about these things.
<?xml version="1.0" encoding="utf-8"?> |
Thanks & Regards
Avinash N K
I would like to do this only on the websites and not on odoo.
Where can I change the info for the product pages of the different websites?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 5 17
|
6674 | ||
|
7
thg 3 16
|
7664 | ||
|
0
thg 12 21
|
2170 | ||
|
1
thg 3 16
|
4642 | ||
|
2
thg 8 25
|
725 |
Where can I change the info for the product pages of the different websites?