Hello, i need to block every details product page from not registered users.
Example users can display this page only if registered..
How can i do? http://casetteitalia.fabiotoscano.it/casette-in-legno-28mm/asa-detail
VM 3.2.14
Thanks
use a standard joomla snippet to find the user id .. if ($userid > 0){
if true continue .. if not return to the cat page
Ok if i understand correctly can i achieve this with custom code in product details page right?
Thanks
yep -- I would put it at the top of the products detail template over ride
you could use the same logic in a sublayouts products.php over ride to hide the links to the details if not logged in
Perfect thanks! Hope should be useful for other users.
I need to add this before:
$user=JFactory::getUser();
Thanks!