VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: farketmez99 on October 05, 2023, 15:44:56 PM

Title: only registered user see price
Post by: farketmez99 on October 05, 2023, 15:44:56 PM
I need to display prices only for registered users. Unregistered users should only see the product description. How do I manage that? Couldn't find any topic about it and documatation as well.
Joomla 4
Virtuemart 4.2
Title: Re: only registered user see price
Post by: Milbo on October 10, 2023, 20:10:45 PM
With specific price display in the shoppergroups. Edit the group guest. Or you could also add a shoppergroup registered to your price. Depends a bit on your shop and how you want to use it.
Title: Re: only registered user see price
Post by: jenkinhill on October 13, 2023, 13:14:02 PM
It's possible to do this by using PHP to check if a user is not logged in and hide content from them.  Edit and override your VM sublayout templates where price and checkout code are present, eg sublayouts/prices.php and sublayouts/addtocart.php