botton only for logged

22.09.2011 21:23
#1
inzaghi
Joomshopping forum user no avatar
Name: pippo
22.09.2011
Posts: 3
Quote
botton only for logged

Can I make these buttons are visible only if a user has logged in?
botton only for logged


Joomla: 1.5
JoomShopping: 2.97
 
26.09.2011 21:56
#2
raziel70
Joomshopping forum user no avatar
Name: raziel70
09.07.2011
Posts: 36
Quote
Aw: botton only for logged

I can give you a code, but you must modify the template code of the JoomShopping!
There is a method in the Joomla with which you can do what you want.

<?php
if (JFactory::getUser()->id == 0) {
echo "If You want to continue the Shopping, please login first!";
} else {?>
......
......
...... INSERT YOUR OWN HTML CODE HERE
......
......
<?php }?>

I have modified this post because I found the solution.

The file to modify can you find here:
/components/com_jshopping/templates/default/product/product_default.php

With this solution can anyone hide or show many things for the guests/users.

In the "echo" row can you change the text to what do you want.

Between "else" and "php" rows can you insert your own html code or text.

IMPORTANT! Make a backup before anything change!!!

Good luck...! :)


Letzte Ă„nderung: 27.09.2011 19:11
 
Copyrights MAXXmarketing GmbH. All Rights Reserved