Community: CMS / eCommerce Experts mailing list archives

expert-website@mail.odoo.com

Re: [eCommerce] How to hide prices and add "Contact for price" for products on website

by
Hieu Nguyen
- 06/02/2015 06:14:51
I wasn't aware of inherited qweb views. Thank you for the heads up, Antony!

Regards,
Hieu

On 02/06/15 06:28, Antony Lesuisse wrote:
<blockquote cite="mid:556CB0A4.8070604@openerp.com" type="cite">
Create an inherited qweb view to replace the price by a button if the product 
is part a specific category (or you could add an x_hide_price bool field).

if will need to override:
website_sale.product
website_sale.products
website_sale.product_price

with a xpath attribute add t-if="not product.x_hide_price
with a xpath append add a 
there any simple ways to achieve this without developing our own module? > > Regards, > Hieu > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/community-59 > Post to: mailto:community@mail.odoo.com > Unsubscribe: https://www.odoo.com/groups?unsubscribe >