I am developing my site by custom theme development and I have created the dynamic rule for hidden prices for a specific group of users.
But still the users are able to see the prices although they can not place order as the add to cart button is disabled or hidden when rule is enabled , this issue is on both shop and product details page .
For the reference I am sharing the code snippet of my pricing template , please check if I am missing any thing here that is making these prices to be visible.
Note : I have customize my template to show the prices based on a tax toggle i.e. with or without tax, and it is working with different prices for different group as well on issue is with hidden prices rule.
I am developing my site by custom theme development and I have created the dynamic rule for hidden prices for a specific group of users.
But still the users are able to see the prices although they can not place order as the add to cart button is disabled or hidden when rule is enabled , this issue is on both shop and product details page .
For the reference I am sharing the code snippet of my pricing template , please check if I am missing any thing here that is making these prices to be visible.
Note : I have customize my template to show the prices based on a tax toggle i.e. with or without tax, and it is working with different prices for different group as well on issue is with hidden prices rule.
file:
wp-content hemes heme-namewoocommerceloopprice.php