Skip to main content

Checkout login

10 years 9 months ago #229877 by kyratn
Checkout login was created by kyratn
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:
Code:
{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

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

10 years 9 months ago #229878 by Jerome
Replied by Jerome on topic Checkout login
Hi,

HikaShop is using regular Joomla accounts ; so there is no reason that it does not work.
Except if you're using guest checkout....

Regards,

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

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

10 years 9 months ago - 10 years 9 months ago #229951 by kyratn
Replied by kyratn on topic Checkout login
Hi,

I do not use guest checkout. You can create account on my website. kyra.lt Then try to login on checkout and you will see that during checkout it is not working. Top right... Only if after login and refresh page it will work.

Thanks
Last edit: 10 years 9 months ago by kyratn.

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

10 years 9 months ago #229967 by nicolas
Replied by nicolas on topic Checkout login
Hi,

I'm sorry but I don't know what I'm looking for.
Can you do a screenshot of what should be where ?

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

10 years 9 months ago #229983 by kyratn
Replied by kyratn on topic Checkout login
Hi,

I am sorry I should be more specific next time.
I have added some screenshot and I hope you will understand what issue I have.

I have created custom html module with code in my first message to display user name. ( Later I will customize it to display vip status based on user group....)
I have modules anythere installed and added that costum html module tag to menu title like in the 6th screenshot attached. It works well on all pages except when login during checkout.
So after item added to cart> go to checkout> login or creat account is displayed like in the 2nd screenshot attached. After login for unknown reason for me module do not load username ( screenshot 3 ) during all checkout steps and page needs to refresh. All works fine after( screenshot 5). So I think there is something wrong with my code and maybe better would be to load user name through hikashop and not joomla like I do now... It is small issue but I would like to fix it.

Kind Regards

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

10 years 9 months ago #230394 by kyratn
Replied by kyratn on topic Checkout login
Hi,

Just want to let you know that finally I found what was giving problems. Module was set to show only for registered and menu through which this module is showing was set too to registered. As this module has no position setting to public did the trick.

Thanks

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

Time to create page: 0.068 seconds
Powered by Kunena Forum