VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: gba on December 19, 2017, 14:18:01 PM

Title: Customer registration just with e-mail address
Post by: gba on December 19, 2017, 14:18:01 PM
Hi!

I found this interesting article:
https://electrodrome.net/joomla-registrierung-nur-mit-benutzername-pseudonym-und-eingabefelder-reduzieren/ (https://electrodrome.net/joomla-registrierung-nur-mit-benutzername-pseudonym-und-eingabefelder-reduzieren/)
Actually this is not exactly what I want to achieve and I do not want to "hack" Joomla.
So, how can I configure/extend VM to enable customers for registering with their e-mail address and a password, only?

Kind regards,
Gerald
Title: Re: Customer registration just with e-mail address
Post by: GJC Web Design on December 19, 2017, 16:32:23 PM
there are posts on here how to autofill name and username as hidden fields with JS and then just make the rest of the shopper fields unpublished
Title: Re: Customer registration just with e-mail address
Post by: Milbo on December 19, 2017, 19:06:56 PM
You can also use https://extensions.virtuemart.net/all-tutorials/19-shopper-fields-plugins/29-automated-numbers
Title: Re: Customer registration just with e-mail address
Post by: Studio 42 on December 20, 2017, 02:46:21 AM
You have some plugin that can copy  email as username, you only have to rename username Joomla Key, no need to hack Joomla.
See for eg : https://extensions.joomla.org/extension/authentication-email/
The problem is after to do same with Virtuemart.
Title: Re: Customer registration just with e-mail address
Post by: gba on October 02, 2019, 14:37:17 PM
Quote from: Milbo on December 19, 2017, 19:06:56 PM
You can also use https://extensions.virtuemart.net/all-tutorials/19-shopper-fields-plugins/29-automated-numbers

Hi!

I have bought this plugin now.

How can I achieve the following:
When the user registers, he just fills in the e-mail address and a password.
The plugin automatically fills in the e-mail address as user name.

What I tried, you can see in the screenshot attached.
But the user name and the name fields stay empty.

Thank you very much in advance for your help!

Kind regards,
Gerald
Title: Re: Customer registration just with e-mail address
Post by: GJC Web Design on October 02, 2019, 15:33:35 PM
Support is via Istraxx (VM extensions)
Title: Re: Customer registration just with e-mail address
Post by: gba on October 02, 2019, 15:34:36 PM
Hi!

Now I have it:
1. I configured the plugin a bit differently (see attached screenshot), to avoid resulting in texts like "Hello example@mail.com!".
2. I unpublished the shopper fields 'username' and 'name' and set them to 'not required'.
3. I created a language overrides for displaying reasonable label descriptions in the frontend.

And voilĂ :
The user can register without filling in the fields 'username' and 'name'!
And he can login with his e-mail address, as the plugin used it as username, too.

Thank you all for all your hints!

Kind regards,
Gerald
Title: Re: Customer registration just with e-mail address
Post by: gba on December 11, 2019, 15:35:41 PM
Hi!

I am now facing a problem with 'Automated Numbers':
If a registered user logs in, opens his account page and changes the e-mail address, the user name is not being updated!

In the product description of the plugin it says:
(https://forum.virtuemart.net/index.php?action=dlattach;topic=139136.0;attach=70429)
So this seems to be a bug.

Otherwise the function to autofill the username with the e-mail would not make sense:
After the user's first change of his e-mail addresse, he will not be able to login with his new e-mail address anymore.

Does anyone of you have an idea, how to workaround/fix that issue?

Kind regards,
Gerald
Title: Re: Customer registration just with e-mail address
Post by: Studio 42 on December 11, 2019, 18:27:13 PM
Quote from: gba on December 11, 2019, 15:35:41 PM
Hi!

I am now facing a problem with 'Automated Numbers':
Is this a VM feature ?
Title: Re: Customer registration just with e-mail address
Post by: gba on December 11, 2019, 19:24:18 PM
Quote from: Studio 42 on December 11, 2019, 18:27:13 PM
Is this a VM feature ?

This post is part of the topic 'Customer registration just with e-mail address' in VM in reply to:
Quote from: Milbo on December 19, 2017, 19:06:56 PM
You can also use https://extensions.virtuemart.net/all-tutorials/19-shopper-fields-plugins/29-automated-numbers
And the solution to this VM problem seems to be the VM extension mentioned there.
It just needs to work right.
And this is what I am trying to achieve with the help of the VM community.
Any constructive comments are still very much appreciated :)
Title: Re: Customer registration just with e-mail address
Post by: Studio 42 on December 12, 2019, 11:44:01 AM
check with istraxx support directly
Title: Re: Customer registration just with e-mail address
Post by: pinochico on December 16, 2019, 07:16:36 AM
We use authentification plugin

User - email or username

from Rupostel as part of OPC.

This plugin function correctly.
Title: Re: Customer registration just with e-mail address
Post by: GJC Web Design on December 16, 2019, 08:26:13 AM
I use https://www.richeyweb.com/software/joomla/packages/16-authentication-email with some minor user template changes
Title: Re: Customer registration just with e-mail address
Post by: pinochico on December 16, 2019, 09:54:51 AM
QuoteI use https://www.richeyweb.com/software/joomla/packages/16-authentication-email with some minor user template changes

Yes, is the second option for eshop or website without OPC from Rupostel, we use too :)
Title: Re: Customer registration just with e-mail address
Post by: Milbo on December 17, 2019, 11:31:23 AM
It is not a bug. The reason is simple, it does not overwrite existing values. I need to add configuration options to decided if it should overwrite existing values, or not.
Imagine the other way round. A user changes just his email address and the login name changed "suddenly" and he cannot login. So both logics are valid. It depends on the use case.
Currently only the "email" is overwriting the old value, other values are checked against empty.

The authentication plugin of Richey is indeed interesting, cause it enables to use username and email.
Title: Re: Customer registration just with e-mail address
Post by: pinochico on December 18, 2019, 06:22:04 AM
No, If I use OPC from Rupostel with this plugin, I can use for login existing username too == for login I can use username or email (This is exactly what plugin do it).
Title: Re: Customer registration just with e-mail address
Post by: gba on December 19, 2019, 17:15:44 PM
Quote from: Milbo on December 17, 2019, 11:31:23 AM
It is not a bug. The reason is simple, it does not overwrite existing values. I need to add configuration options to decided if it should overwrite existing values, or not.
Imagine the other way round. A user changes just his email address and the login name changed "suddenly" and he cannot login. So both logics are valid. It depends on the use case.
Currently only the "email" is overwriting the old value, other values are checked against empty.

The authentication plugin of Richey is indeed interesting, cause it enables to use username and email.
Thank you very much!
(successfully tested in plugin version 1.2.2)