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

#   Php code for "Email will be username"

##

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

Less More

- Posts: 152
- Thank you received: 11
-
-

3 years 2 months ago -  3 years 2 months ago [\#354507](#354507) by [gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")  *[Php code for "Email will be username"](/forum/23-market-how-to/906900-php-code-for-email-will-be-username#354507 "-- HikaShop version -- : 4.7.5 -- HikaMarket version -- : 4.1.1 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.0.29  Market options &gt; Registration options &gt; Email will be username &gt; YES  In the registration.php file there is the condition if($this-&gt;config-&gt;get('registration&#95;email&#95;is&#95;username', 0) == 0)  In that php file there is the code that &quot;copy&quot; the value of the email in the username field ??  Thanks")* was created by *[gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")*

-- HikaShop version -- : 4.7.5
-- HikaMarket version -- : 4.1.1
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.0.29

Market options &gt; Registration options &gt; Email will be username &gt; YES

In the **registration.php** file there is the condition if($this-&gt;config-&gt;get('registration_email_is_username', 0) == 0)

In that **php file** there is the code that "copy" the value of the email in the username field ??

Thanks

Last edit: 3 years 2 months ago by [gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

3 years 2 months ago [\#354519](#354519) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Php code for "Email will be username"](/forum/23-market-how-to/906900-php-code-for-email-will-be-username#354519 "-- HikaShop version -- : 4.7.5 -- HikaMarket version -- : 4.1.1 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.0.29  Market options &gt; Registration options &gt; Email will be username &gt; YES  In the registration.php file there is the condition if($this-&gt;config-&gt;get('registration&#95;email&#95;is&#95;username', 0) == 0)  In that php file there is the code that &quot;copy&quot; the value of the email in the username field ??  Thanks")*

Hello,

When the setting is enabled, the "username" field is not displayed during the registration.
The HikaShop/Joomla registration process will use the email as username.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-

3 years 2 months ago [\#354530](#354530) by [gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")  Replied by *[gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")* on topic *[Php code for "Email will be username"](/forum/23-market-how-to/906900-php-code-for-email-will-be-username#354530 "-- HikaShop version -- : 4.7.5 -- HikaMarket version -- : 4.1.1 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.0.29  Market options &gt; Registration options &gt; Email will be username &gt; YES  In the registration.php file there is the condition if($this-&gt;config-&gt;get('registration&#95;email&#95;is&#95;username', 0) == 0)  In that php file there is the code that &quot;copy&quot; the value of the email in the username field ??  Thanks")*

Hi Jerome, it's all clear to me ![:)](/media/kunena/emoticons/3.png ":)")

I would like to know in which **php file** there is the code that "copy" the value of the email in the username field

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

3 years 2 months ago [\#354535](#354535) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Php code for "Email will be username"](/forum/23-market-how-to/906900-php-code-for-email-will-be-username#354535 "-- HikaShop version -- : 4.7.5 -- HikaMarket version -- : 4.1.1 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.0.29  Market options &gt; Registration options &gt; Email will be username &gt; YES  In the registration.php file there is the condition if($this-&gt;config-&gt;get('registration&#95;email&#95;is&#95;username', 0) == 0)  In that php file there is the code that &quot;copy&quot; the value of the email in the username field ??  Thanks")*

Hello,

administrator/components/com_hikamarket/classes/user.php
function : register

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vOTA2OTAwLXBocC1jb2RlLWZvci1lbWFpbC13aWxsLWJlLXVzZXJuYW1lP3RtcGw9bWFya2Rvd24=) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.063 seconds

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