[Skip to main content](#vessel-content)

#   Buyer's Email in the comments section and Personal data protection

##

- **[Takuan](/forum/user/58217-takuan "View Takuan's Profile")**
- [![Takuan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58217-takuan "View Takuan's Profile") Topic Author
- [ Offline](/forum/user/58217-takuan)

Less More

- Posts: 28
- Thank you received: 2
-
-

7 years 7 months ago [\#305512](#305512) by [Takuan](/forum/user/58217-takuan "View Takuan's Profile")  *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305512 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")* was created by *[Takuan](/forum/user/58217-takuan "View Takuan's Profile")*

-- 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 ![:(](/media/kunena/emoticons/22.png ":(")
Or maybe there are alternatives to solve this problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14288
-
-

7 years 7 months ago [\#305523](#305523) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305523 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")*

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&gt;Views.
There, you'll see: Code:

&lt;?php if ($elt-&gt;vote_pseudo == '0') { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;username; ?&gt; &lt;/span&gt; &lt;?php } else { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username" &gt;&lt;?php echo $elt-&gt;vote_pseudo; ?&gt;&lt;/span&gt; &lt;?php } ?&gt;

which you can replace by: Code:

&lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;name; ?&gt; &lt;/span&gt;

The following user(s) said Thank You: [Takuan](/forum/user/58217-takuan "View Takuan's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Takuan](/forum/user/58217-takuan "View Takuan's Profile")**
- [![Takuan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58217-takuan "View Takuan's Profile") Topic Author
- [ Offline](/forum/user/58217-takuan)

Less More

- Posts: 28
- Thank you received: 2
-
-

7 years 7 months ago [\#305525](#305525) by [Takuan](/forum/user/58217-takuan "View Takuan's Profile")  Replied by *[Takuan](/forum/user/58217-takuan "View Takuan's Profile")* on topic *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305525 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")*

Thanks, Nicolas!!!
It's really what I need!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")**
- [![ericdewaal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57169-ericdewaal "View ericdewaal's Profile")
- [ Offline](/forum/user/57169-ericdewaal)

Less More

- Posts: 26
- Thank you received: 1
-
-

7 years 6 months ago [\#305839](#305839) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305839 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")*

Hi,

I extended Nicolas' answer a bit so it takes also the votes of non-registered users into account:
Code:

&lt;?php if ($elt-&gt;name != "") { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;name; ?&gt; &lt;/span&gt; &lt;?php } else { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;vote_pseudo; ?&gt; &lt;/span&gt; &lt;?php } ?&gt;

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Takuan](/forum/user/58217-takuan "View Takuan's Profile")**
- [![Takuan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58217-takuan "View Takuan's Profile") Topic Author
- [ Offline](/forum/user/58217-takuan)

Less More

- Posts: 28
- Thank you received: 2
-
-

7 years 6 months ago [\#305867](#305867) by [Takuan](/forum/user/58217-takuan "View Takuan's Profile")  Replied by *[Takuan](/forum/user/58217-takuan "View Takuan's Profile")* on topic *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305867 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")*

> ericdewaal wrote: Hi,
>
> I extended Nicolas' answer a bit so it takes also the votes of non-registered users into account:
>
> Code:
>
> &lt;?php if ($elt-&gt;name != "") { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;name; ?&gt; &lt;/span&gt; &lt;?php } else { ?&gt; &lt;span itemprop="name" class="hika_vote_listing_username"&gt;&lt;?php echo $elt-&gt;vote_pseudo; ?&gt; &lt;/span&gt; &lt;?php } ?&gt;

Thank you, though I use comments only for registered users who bought some goods.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")**
- [![ericdewaal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57169-ericdewaal "View ericdewaal's Profile")
- [ Offline](/forum/user/57169-ericdewaal)

Less More

- Posts: 26
- Thank you received: 1
-
-

7 years 6 months ago [\#305872](#305872) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Buyer's Email in the comments section and Personal data protection](/forum/26-product-category-display/897268-buyers-email-in-the-comments-section-and-personal-data-protection#305872 "-- 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 &quot;vote&#95;pseudo&quot; 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 &quot;vote&#95;pseudo&quot;. The question is how to do it, because I'm not strong in PHP :( Or maybe there are alternatives to solve this problem?")*

> 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyNjgtYnV5ZXJzLWVtYWlsLWluLXRoZS1jb21tZW50cy1zZWN0aW9uLWFuZC1wZXJzb25hbC1kYXRhLXByb3RlY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.101 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
