- Posts: 37
- Thank you received: 4
How to display name of user (not login) when he vote?
- serg4erkassy
-
Topic Author
- Offline
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18
Hello.
How to display name of user (not login) when he vote?
Is it possible?
Please Log in or Create an account to join the conversation.
I'm not sure what you mean.
Isn't that already the case on your website ?
I can see the name of the user for each comment on your link:
monosnap.com/file/PEDbKvLnth0Meesy9uwQgPhRsJWJZP
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
No, it's logins.
Screenshots attached
Please Log in or Create an account to join the conversation.
Well, there are several problems:
- I'm not able to finish the registration on your website as I never got the activation email. It seems you have a problem with the sending of emails on your website, you should check on that.
- I see that on your screenshots, you're apparently logged in to test this, but since I can't register and you didn't provide a test user account, I can't check the situation myself.
- I don't see the same comment form as on your screenshot when I look at it as a guest:
monosnap.com/file/LKnIuBASGGKjcpbkFNdT8ipY2UrsXI
- It seems that your product page is heavily customized (by the template you're using I suppose).
- When I try to reproduce the issue on my local website, I don't have any login or name field on the comment form while logged in (and that's normal since HikaShop already knows your name and username, it doesn't need to ask it to you).
- Now on the listing of comments, it's the username of the customer which is displayed. If you want to change it to the "name" of the user account, you can edit the file vote / listing.php via the menu Display>Views of HikaShop and change the line:
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
I've activated registration for test_hikashop2 - I guess it was you. You didn't receive emails with activation, because I want to do it manually everytime.
Also, I don't see line "<span<?php echo $span_elements; ?> class="hika_vote_listing_username"><?php echo $elt->username; ?> </span>"
in vote / listing.php
Can I provide an account for the test not (public) here?
Please Log in or Create an account to join the conversation.
I would recommend to check again the vote / listing.php file just search for username. You should definitely find it.
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
I found and change to this <span<?php echo $span_elements; ?> class="hika_vote_listing_username"><?php echo $elt->name; ?> </span>
But not helps
Please Log in or Create an account to join the conversation.
I don't see why it wouldn't work.
Please provide a screenshot of the area where you did your modification.
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
Screenshot attached.
Also you can give me your email and I'll send you login and pass to enter to admin panel
Please Log in or Create an account to join the conversation.
The change looks ok so I would say that you did the override for another template than the template you're actually using on your frontend. Please check on that.
If that's not it, please provide a backend access and a link to this thread for reference via our contact form:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
Thank you
Please Log in or Create an account to join the conversation.
I analyze your code and you have a condition just before your modification that say to display your custom part, IF your "vote_pseudo" is egal to '0', and maybe that's why you don't see your custom code.
Hope this will help you to progress on your custom code.
Regards
Please Log in or Create an account to join the conversation.
- serg4erkassy
-
Topic Author
- Offline
- Posts: 37
- Thank you received: 4
Please Log in or Create an account to join the conversation.