Can I make these buttons are visible only if a user has logged in?
Joomla: 1.5
JoomShopping: 2.97
JoomShopping: 2.97
22.09.2011 21:23
|
|
inzaghi
Name: pippo
22.09.2011
Posts: 3
|
|
26.09.2011 21:56
|
|
raziel70
Name: raziel70
09.07.2011
Posts: 36
|
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
|