Hello. I thought I could hide prices to unregistered users by changing the "Shopper Group" in the pricing tab of each product. This way, instead of viewing the prices, they see a "Ask for the price" link.
Anyway, I don't want this to happen, products should be added to the cart regularly and anonymous users only won't see the prices on the single product pages, yet they will see the total price in their cart. How to do this?
I've looked on the forum but didn't find anything who could help me.
Thank you in advance
Use template overrides for category & product prices with a check if the user is logged in. If not logged in then hide the price display.
Thank you! Anyway I know where to edit but not the check I should make. What should the "if" be like?
Can anyone help me?
$user =& JFactory::getUser();
$userid = $user->get('id');
if($userid>0) {
//display prices
}
Thank you a lot, really! :))))