- Posts: 28
- Thank you received: 2
Buyer's Email in the comments section and Personal data protection
7 years 7 months ago #305512
by Takuan
-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Chrome
Hi!
I faced with the following serious, in my opinion, problem.
In Hikashop as in all modern e-Commerce components user Login = user Email.
It is convenient and has long been used by all.
But when a user writes and places a comment on the product page, his Login is written in the "vote_pseudo" field but not his Name. As a result we have a publication of the user email in the comments, which is a direct violation of the Law on personal data that we undertake to store and not to transfer to third parties without the consent of the user.
I can hide using css field with user login, but it is not correct decision. Need to solve the problem in the code, writing user Name in the field "vote_pseudo". The question is how to do it, because I'm not strong in PHP
Or maybe there are alternatives to solve this problem?
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Chrome
Hi!
I faced with the following serious, in my opinion, problem.
In Hikashop as in all modern e-Commerce components user Login = user Email.
It is convenient and has long been used by all.
But when a user writes and places a comment on the product page, his Login is written in the "vote_pseudo" field but not his Name. As a result we have a publication of the user email in the comments, which is a direct violation of the Law on personal data that we undertake to store and not to transfer to third parties without the consent of the user.
I can hide using css field with user login, but it is not correct decision. Need to solve the problem in the code, writing user Name in the field "vote_pseudo". The question is how to do it, because I'm not strong in PHP
Or maybe there are alternatives to solve this problem?
Please Log in or Create an account to join the conversation.
7 years 7 months ago #305523
by nicolas
Replied by nicolas on topic Buyer's Email in the comments section and Personal data protection
Hi,
Actually, your situation is not how it is by default in HikaShop.
The user email is not used for the username of the user accounts by default instead you change the "registration" setting of the HikaShop registration to "simplified registration" which removes the username field.
And we actually use the username of the user account instead of the user's name in order to prevent the display of the user's name in the comments so that only his username (which can be anything) appears in order to protect his privacy.
Now, if you want to keep the way it works with the registration and only replace the vote_pseudo display on the listing of comments by the name of the user, you can edit the file vote/listing.php via the menu Display>Views.
There, you'll see:
which you can replace by:
Actually, your situation is not how it is by default in HikaShop.
The user email is not used for the username of the user accounts by default instead you change the "registration" setting of the HikaShop registration to "simplified registration" which removes the username field.
And we actually use the username of the user account instead of the user's name in order to prevent the display of the user's name in the comments so that only his username (which can be anything) appears in order to protect his privacy.
Now, if you want to keep the way it works with the registration and only replace the vote_pseudo display on the listing of comments by the name of the user, you can edit the file vote/listing.php via the menu Display>Views.
There, you'll see:
Code:
<?php if ($elt->vote_pseudo == '0') { ?>
<span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->username; ?> </span>
<?php } else { ?>
<span itemprop="name" class="hika_vote_listing_username" ><?php echo $elt->vote_pseudo; ?></span>
<?php } ?>
Code:
<span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->name; ?> </span>
The following user(s) said Thank You: Takuan
Please Log in or Create an account to join the conversation.
7 years 7 months ago #305525
by Takuan
Replied by Takuan on topic Buyer's Email in the comments section and Personal data protection
Thanks, Nicolas!!!
It's really what I need!
It's really what I need!
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 26
- Thank you received: 1
7 years 6 months ago #305839
by ericdewaal
Replied by ericdewaal on topic Buyer's Email in the comments section and Personal data protection
Hi,
I extended Nicolas' answer a bit so it takes also the votes of non-registered users into account:
I extended Nicolas' answer a bit so it takes also the votes of non-registered users into account:
Code:
<?php if ($elt->name != "") { ?>
<span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->name; ?> </span>
<?php }
else { ?>
<span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->vote_pseudo; ?> </span>
<?php } ?>
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
7 years 6 months ago #305867
by Takuan
Thank you, though I use comments only for registered users who bought some goods.
Replied by Takuan on topic Buyer's Email in the comments section and Personal data protection
ericdewaal wrote: Hi,
I extended Nicolas' answer a bit so it takes also the votes of non-registered users into account:
Code:<?php if ($elt->name != "") { ?> <span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->name; ?> </span> <?php } else { ?> <span itemprop="name" class="hika_vote_listing_username"><?php echo $elt->vote_pseudo; ?> </span> <?php } ?>
Thank you, though I use comments only for registered users who bought some goods.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 26
- Thank you received: 1
7 years 6 months ago #305872
by ericdewaal
So do we, but I just wanted to keep the original functionality intact.
Replied by ericdewaal on topic Buyer's Email in the comments section and Personal data protection
Takuan wrote:
Thank you, though I use comments only for registered users who bought some goods.
So do we, but I just wanted to keep the original functionality intact.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds