3.06 Display Logged in user name

There are a couple blocks that deal with user account info, but none seem to work like the 2.25 version.



If a user is not logged in we wish see a click link or object to login or register. If the user is logged in, we wish the user to see that he or she is logged as …



I could do some HTML, but is this not a standard block or feature? Am I missing something or perhaps have a block setting wrong?



Thanks!

Hello kvanlaar,



Thank you for your message.



Unfortunately, there is no way to create the same My Account block in CS-Cart 3.0.x as it was in version 2.x. The My Account block looks differently in CS-Cart 3.0.x. You can check it in our CS-Cart demo storefront ( Instant Demo - CS-Cart Multi-Vendor Demo Try Free for 15 days ) at the top on the right. If you click on the name of this block, you will see the Sign in and Register links. After a customer signs in and click on the name of the block, he/she can see his/her name there.



Please check it.



Thank you.





Pavel Zyukin

CS-Cart Support team

Yes I understand how the 3.06 Account Block works. That said, virtually every 'website' with a user registration process displays a name or other indicator that the user is actually logged into the site. The is typically done with a REGISTER or LOGIN block that is displayed if the user is not logged in. This is replaced with the users name if he is logged in.



This concept promotes registration on the site. All we have now is a block that says My Account. Not a show stopper in my opinion, but certainly a step backwards.



I am curious as to what drove this change in design decision, or if there are any plans to include this functionality.

Hello kvanlaar,



Thank you for your message.



It seems that I confused you with my previous message. I am sorry for this. There is a way to set up the My Account block to look as in version 2.x. In order to implement it, you should open settings of this block on Design > Blocks in your CS-Cart admin panel (click on the gear icon of this block). In the opened window with the block settings, change the wrapper to Sidebox general and click the Save button. The block will not look the same as in CS-Cart 2.x after this, but it will look very similar to it. Please check it.



Thank you.





Pavel Zyukin

CS-Cart Support team

Thanks for taking a moment to respond back Pavel! Yes, I am aware of using the different wrappers on the blocks. Changing the wrapper from the DropDown to the SideBar general functionally does what I want it to do in terms of the login, registration, and user name display. However, this wrapper makes it a box with additional information I don’t need or want in this case. Though certainly the account block using a sidebar wrapper is appropriate for … well … a sidebar :)



I can code what I need … was just trying to save some time or see if I missed something. What I would do is a block without a wrapper that displayed and operated based on the users login status … psuedo code follows …



If the user is logged in …

Display + ‘Logged In’

Else

Display Login or Register



The information is displayed on one line …



Clicking on login or register takes you to the appropriate screen to do that function …



Anyway, not a big deal …

Hello kvanlaar,



I am glad to hear that you are satisfied with the solution provided. If there is anything else I can assist you with, please do not hesitate to ask.



Thank you.





Pavel Zyukin

CS-Cart Support team