How to display user name in cpanel ?

  • Posts: 71
  • Thank you received: 3
9 years 5 months ago #203643

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

Hello,

How can I add the username of customer in the cpanel view ?

Thanks a lot

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 5 months ago #203645

Hi,

You can add the code:

<?php $user = hikashop_loadUser(true); echo $user->username; ?>
in the view "user / cpanel".

www.hikashop.com/support/support/documen...ize-the-display.html

The following user(s) said Thank You: marremp2

Please Log in or Create an account to join the conversation.

  • Posts: 78
  • Thank you received: 0
9 years 5 months ago #203833

Joomla: 3.4.1
HikaShop Business: 2.4.0

Hi,

I want to show the username that have logged in next to the 'Logout' button.
Something like 'Hi Joe' | LOGOUT
Will this code insert achieve that?
I found the view/cpanel.php but not sure where to insert the code into the php file.
Could you tell me the line number?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 5 months ago #203834

Hi,

There is no "logout" button in the HikaShop cpanel ; what you're looking for is related to Joomla itself and not to HikaShop.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum