test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • calavaro Friend
    #193815

    Hi,

    How do I show different content (in this case some intro text) for logged in users and not logged in users on the review tab in a product page (before the rating and review)?

    I edit “default_reviews.php” (in template folder/html/com_virtuemart/productdetails
    and normal “echo” text shows up fine (eg: echo JText::_ (“Text here”); )

    But how do I make the text appear differently for logged in and logged out users?

    I tried:

    if ( $user (‘guest’) == 1 ) {
    echo JText::_ (“Text here”);
    } else {
    echo JText::_ (“Something else”);

    But that does not work… It shows the same text “Text here” for both logged in and logged out users.

    Some idea anyone?

    Thank you.

    All the best,

    Calavaro

    Saguaros Moderator
    #519030
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum