@ -19,7 +19,7 @@
</template>
<!-- Hide Add To Cart button for guest users -->
<template id= "product" inherit_id= "website_sale.product" >
<xpath expr= "//div[@id='o_wsale_cta_wrapper ']" position= "attributes" >
<xpath expr= "//div[@id='add_to_cart_wrap ']" position= "attributes" >
<attribute name= "t-if" > login_user == False</attribute>
</xpath>
</template>
@ -35,10 +35,11 @@
<!-- Cart_hide -->
<template id= "header_cart_link_hide"
inherit_id="website_sale.header_cart_link">
<xpath expr= "//t[@t-set='show_cart']" position= "replace" >
<t t-if= "not request.env.user._is_public() or (request.env.user._is_public() and not request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_cart'))" >
<t t-set= "show_cart" t-value= "true" />
</t>
<xpath expr= "//a[@href='/shop/cart']" position= "attributes" >
<attribute name= "t-if" > not request.env.user._is_public() or
(request.env.user._is_public() and not
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_cart'))
</attribute>
</xpath>
</template>
<!-- Hide details section in search bar for hide price -->
@ -115,7 +116,6 @@
<attribute name= "t-if" > (not request.env.user._is_public() or
(request.env.user._is_public() and not
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price')))
and not data['website_hide_price']
</attribute>
</xpath>
</template>