Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to hide product price from non registerd customers in odoo ecommerce?

By
ABU
on 6/23/16, 12:07 AM 186 views
 <template id="website_sale.product_price" inherit_id="website_sale.product_price" name="Cart Logged in USers" customize_show="True">   
 <!--<xpath expr="//section/div/b/span[1]" position="replace">-->
 <div t-if="not user_id.partner_id.name == 'Public user'" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt16"/> <!--</xpath>--></template>
 <template id="website_sale.products_item" inherit_id="website_sale.products_item" name="item Logged in USers" customize_show="True">
<div t-if="not user_id.partner_id.name == 'Public user'" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price"/> <!--<div t-if="not user_id.partner_id.name == 'Public user'" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt16">--> <!--</xpath>--></template>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/23/16, 12:07 AM
Seen: 186 times
Last updated: 6/23/16, 1:26 AM