Hi nicolas,
I did the following to avoid the database query:
if (JFactory::getUser()->id == 0)
{
echo JText::_('YOU_NEED_TO_REGISTER');
}
else {
echo JText::_('FREE_PRICE');
}
This works well so far.
However, I also need to implement the check where the button for adding to cart is being generated (I only want it to show for registered users).
Which views do I need to change?
I tried displaying which views are being used in the frontend but could not quite find the right ones (looking for both the corresponding product and category view).