The user can enable the 'Hide Cart for Guests' and 'Hide Product Prices from Guests' options in the general settings of the Website module.</h4>
The user can enable 'Hide Product Prices for Guests', which will also turn on 'Hide Cart from Guests'. They can then choose to apply it to all websites or only specific websites.</h4>
If the chosen option is "Selected Websites", another field will appear where you can specify the websites on which the price and cart will be hidden for guest users. This feature will be applied only to the selected websites.</h4>
<tt-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'))">
<tt-if="not request.env.user._is_public() or (request.env.user._is_public() and show_price)">