website_sale_registered.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- oculta detalle de producto en vista individual -->
  5. <template id="products_price_registered_product" inherit_id="website_sale.product">
  6. <xpath expr="//div[@class='js_product']" position="attributes">
  7. <attribute name="t-if">website.user_id != user_id</attribute>
  8. </xpath>
  9. </template>
  10. <!-- oculta precio de page/shop -->
  11. <template id="products_price_registered_shop" inherit_id="kingfisher.product_itms">
  12. <xpath expr="//div[@class='product_price']" position="attributes">
  13. <attribute name="t-if">website.user_id != user_id</attribute>
  14. </xpath>
  15. </template>
  16. <!-- oculta el carrito en el menu superior esquina-->
  17. <template id="hide_cart" inherit_id="kingfisher.homepage_top_header">
  18. <xpath expr="//div[@class='cart-toggle']" position="attributes">
  19. <attribute name="t-if">website.user_id != user_id</attribute>
  20. </xpath>
  21. </template>
  22. <!-- <template id="hide_cart2" inherit_id="kingfisher.homepage_top_header">
  23. <xpath expr="//div[@class='container oe_website_sale']" position="attributes">
  24. <attribute name="t-if">website.user_id != user_id</attribute>
  25. </xpath>
  26. </template> -->
  27. <!-- oculta boton agregar a carrito en page/shop -->
  28. <template id="hide_add_cart" inherit_id="kingfisher.products_add_to_cart">
  29. <xpath expr="//div[@class='add-cart']" position="attributes">
  30. <attribute name="t-if">website.user_id != user_id</attribute>
  31. </xpath>
  32. </template>
  33. </data>
  34. </openerp>