@ -21,7 +21,7 @@
###############################################################################
{
'name': "Hide Price, Add To Cart And Quantity Button In Website",
'version': '17.0.3.0.0',
'version': '17.0.3.0.1',
'category': 'Website',
'summary': """Hide Price, Add To Cart and Quantity button for guest
users""",
@ -20,3 +20,8 @@
#### Version 17.0.3.0.0
##### UPDT
- Bug Fix - Fixed the error that occurred after installing the website_sale_stock module
#### 10.01.2025
#### Version 17.0.3.0.1
- Bug Fix - Fixed the bug where the cart was not being hidden even when the option was enabled.
@ -59,3 +59,5 @@ class ResConfigSettings(models.TransientModel):
def _onchange_hide_price(self):
if self.hide_price:
self.hide_cart = True
self.env['ir.config_parameter'].sudo().set_param(
'website_hide_button.hide_cart', self.hide_cart)
@ -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">
<xpath expr="//a[@href='/shop/cart']" position="attributes">
<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'))">
<attribute name="t-if">not request.env.user._is_public() or
<t t-set="show_cart" t-value="true"/>
(request.env.user._is_public() and not
</t>
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 -->