Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Login With Email/username Modification In 4.3.x Rate Topic   - - - - -

 
  • thomas
  • Advanced Member
  • Members
  • Join Date: 19-Nov 12
  • 83 posts

Posted 10 September 2015 - 03:17 PM #1

Hello all,

 

How i enable the login or sign in with email/username in version 4.3.3. In this version sign in with email is enable but how to enable both username or email....

 

In which functions or page i have to modify to do this??

 

Please help me out from this problem... any help would be appreciated

 

Thanks


Cheers!
Thomas

 
  • zeero6
  • Senior Member
  • Members
  • Join Date: 25-Jan 07
  • 642 posts

Posted 10 September 2015 - 03:21 PM #2

Don't think username is available anymore. May need custom work.


Version 4.6.1


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17413 posts

Posted 10 September 2015 - 03:50 PM #3

Hello all,

 

How i enable the login or sign in with email/username in version 4.3.3. In this version sign in with email is enable but how to enable both username or email....

 

In which functions or page i have to modify to do this??

 

Please help me out from this problem... any help would be appreciated

 

Thanks

 

Unfortunately, the usernames are not supported since 4.3.1 


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10607 posts

Posted 10 September 2015 - 10:38 PM #4

Would require code modification to accept and code modification to allow a user to create a username.  The fields are still in the DB but are not used.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • thomas
  • Advanced Member
  • Members
  • Join Date: 19-Nov 12
  • 83 posts

Posted 11 September 2015 - 06:11 AM #5

Yes i know that username is not used from cs cart version 4.3.x... but i have to enable just login o with username or email...so, in which function or page i have to modify??

 

Please suggest some points


Cheers!
Thomas

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17413 posts

Posted 11 September 2015 - 09:07 AM #6

app/functions/fn.users.php

 

Find the fn_auth_routines function and replace:

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);

with

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);
if (empty($user_data)) {
    $user_data = db_get_row("SELECT * FROM ?:users WHERE user_login = ?s" . $condition, $user_login);
}

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • thomas
  • Advanced Member
  • Members
  • Join Date: 19-Nov 12
  • 83 posts

Posted 11 September 2015 - 12:20 PM #7

Thanks  for your reply..its works like a champ...thanks


Cheers!
Thomas

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17413 posts

Posted 11 September 2015 - 02:39 PM #8

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Telemaco78
  • Member
  • Members
  • Join Date: 12-Sep 08
  • 89 posts

Posted 06 February 2017 - 06:02 PM #9

app/functions/fn.users.php

 

Find the fn_auth_routines function and replace:

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);

with

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);
if (empty($user_data)) {
    $user_data = db_get_row("SELECT * FROM ?:users WHERE user_login = ?s" . $condition, $user_login);
}

(!) Not tested

Hi eComLabs

 

I have tried to do that change but is not working for me... it still ask me for mail address as a required field, I´m using cs-cart version 4.3.6, do you know if that mod is suitable for my version??

 

Thanks in advance



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17413 posts

Posted 07 February 2017 - 06:22 AM #10

Hi eComLabs

 

I have tried to do that change but is not working for me... it still ask me for mail address as a required field, I´m using cs-cart version 4.3.6, do you know if that mod is suitable for my version??

 

Thanks in advance

 

Do you mean form? You should remove the cm-email class from the input on the authorization form


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Telemaco78
  • Member
  • Members
  • Join Date: 12-Sep 08
  • 89 posts

Posted 07 February 2017 - 05:32 PM #11

Do you mean form? You should remove the cm-email class from the input on the authorization form

Thank you very much eComLabs ... tou were right:

 

design/themes/(theme name)/templates/views/auth/

open loginform.tpl

and erase cm-email and change language variable {__("email")} as desired...

 

Then change what you have pointed up here eComLabs... 

 

Now I have a doubt .... how users can retrieve their username if they have forgotten it? Did you any of you have had this problem?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17413 posts

Posted 08 February 2017 - 05:18 AM #12

Thank you very much eComLabs ... tou were right:

 

design/themes/(theme name)/templates/views/auth/

open loginform.tpl

and erase cm-email and change language variable {__("email")} as desired...

 

Then change what you have pointed up here eComLabs... 

 

Now I have a doubt .... how users can retrieve their username if they have forgotten it? Did you any of you have had this problem?

 

Since this feature is not supported anymore, there is not way to retrieve it without additional code modificaitons


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.