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

Hello,

Our product prices are always 0, as the price is fully determined by the variant price. Is there a way to hide product prices in the grid, and only show variant prices on the product page?


Regards,


Stefan

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

Hello @Maurice de Bruin


Hope you are doing well.


There is no any configuration to hide the price from grid view directly but you can achieve this by doing some hard code like below.

Please find code in comment. 

Thanks & Regards,
Email:  odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง

Please Find code here :-

Link to manifest file:
'data': [
'views/website_sale_template_inherit.xml',
],
File name = website_sale_template_inherit.xml

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Shop page: Hide Price for Shop page -->
<template id="products_item_inherit" name="Product Items Inherit" inherit_id="website_sale.products_item" active="True">
<xpath expr="//div[hasclass('product_price')]" position="replace"/>
</template>
</data>
</odoo>

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
พ.ค. 25
4819
2
ม.ค. 25
2289
4
ม.ค. 25
4419
0
พ.ย. 24
1701
website module is not working แก้ไขแล้ว
1
พ.ย. 24
2522