Hi,
So I have created custom html module to display logged in user name.
Everything works fine except one thing.
When user goes to checkout and login throught hikashop, my module do not display logged in user name during all checkout process. Is there a way to fix it?
Maybe instead using joomla I could use hikashop to display user name?
Here is the code I use:
{source}
<?php
$user = JFactory::getUser();
$groups = $user->groups;
if($user->id) {
if (isset($groups[2])) echo '<span class="uservip none"><i class="fa fa-star-o fa-lg"></i></span>';
if (isset($groups[5])) echo '<span class="uservip bronze"><i class="fa fa-star fa-lg" style="color: #CD7F32;"></i></span>';
if (isset($groups[7])) echo '<span class="uservip silver"><i class="fa fa-star fa-lg" style="color: #c0c0c0;></i></span>';
if (isset($groups[6])) echo '<span class="uservip gold"><i class="fa fa-star fa-lg" style="color: #ffd700;></i></span>';
echo '<span class="usernick userstatus">', $user->username, '<i class=" fa fa-caret-down" style="padding: 3px;"></i></span>';
}
?>
{/source}
Thanks