How to display name of user (not login) when he vote?

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318025

-- url of the page with the problem -- : smart.ck.ua/hodynnyky/product/65-chasy
-- 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.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 years 6 months ago #318026

Hi,

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.

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318037

Hello Nicolas.
No, it's logins.
Screenshots attached

Attachments:

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 years 6 months ago #318046

Hi,

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:

<span<?php echo $span_elements; ?> class="hika_vote_listing_username"><?php echo $elt->username; ?> </span>
to:
<span<?php echo $span_elements; ?> class="hika_vote_listing_username"><?php echo $elt->name; ?> </span>

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

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318062

Hi.
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.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 years 6 months ago #318076

Hi,

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.

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318111

Hello.
I found and change to this <span<?php echo $span_elements; ?> class="hika_vote_listing_username"><?php echo $elt->name; ?> </span>
But not helps

Last edit: 4 years 6 months ago by serg4erkassy.

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 years 6 months ago #318113

Hi,

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.

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318207

Hello.
Screenshot attached.
Also you can give me your email and I'll send you login and pass to enter to admin panel

Attachments:

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 years 6 months ago #318211

Hi,

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.

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318299

Hello. I 've just sent access. I can not solve with myself or with template seller (they didn't help)
Thank you

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

  • Posts: 4738
  • Thank you received: 644
  • MODERATOR
4 years 6 months ago #318349

Hello,

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

Last edit: 4 years 6 months ago by Philip.

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

  • Posts: 37
  • Thank you received: 4
4 years 6 months ago #318449

THanks

The following user(s) said Thank You: Philip

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

Time to create page: 0.079 seconds
Powered by Kunena Forum