Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: [SOLVED] User welcome does not show user's name

[SOLVED] User welcome does not show user's name 11 years 8 months ago #83

Hi there,

I have noticed only now that when a user logs in, the button on the top left that says Hello and then Logout does not have the member's name next to the Hello.

Have attached a screenshot

Do let me know how to fix this.
Attachments:
Last Edit: 11 years 7 months ago by Support.
The topic has been locked.

User welcome does not show user's name 11 years 8 months ago #95

Hi,

yes it is a small issue that has started appearing in the latest VM versions. But there is patch for it.

open this PHP file:
/templates/<yourjoomlatemplate>/html/com_virtuemart/user/login.php

and find this line:
<?php echo JText::sprintf( 'COM_VIRTUEMART_HINAME', $this->JUser->name ); ?>

change it with this:
<?php echo JText::sprintf( 'COM_VIRTUEMART_HINAME', $user->name ); ?>
The topic has been locked.

User welcome does not show user's name 11 years 7 months ago #197

This code change breaks the page. It is because of this that the Register as Guest and Register an Checkout disappear from the page. See my other thread here - www.flexiblewebdesign.com/forum-virtuemart-2-template-fashionmart-support/52-registered-users-address-not-being-stored/Page-1

Can you do something so that this does not happen?

Deepak
The topic has been locked.

User welcome does not show user's name 11 years 7 months ago #204

Problem is solved. Topic is closed
The topic has been locked.
Time to create page: 0.104 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo