VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stanislavus on January 02, 2015, 16:00:08 PM

Title: How to simplify registration process? (use email as username)
Post by: stanislavus on January 02, 2015, 16:00:08 PM
Hello fellow VM users.

I'm trying to simplify the registration process so that users could use only the email & password to register and login into the shop.

I found nice joomla extensions that enable using only email as the login username:
http://extensions.joomla.org/extensions/extension/access-a-security/site-access/authentication-email
http://extensions.joomla.org/extensions/extension/access-a-security/site-access/awo-email-login

In the registration form I want to use only the email & password fields. Unfortunately in VM configuration I'm unable to turn off (unpublish) the fields: "username" & "name"
Do you know any solution to this?

Thank you in advance for your support!
Title: Re: How to simplify registration process? (use email as username)
Post by: GJC Web Design on January 02, 2015, 16:59:48 PM
When I need this I use a JS snippet to populate the fields with the email address and hide them with css
Title: Re: How to simplify registration process? (use email as username)
Post by: stanislavus on January 02, 2015, 17:13:02 PM
Thank you for your reply.

Does this solution enable easy security updates in the future (like when it is necessary to run security updates with the next Joomla or VM versions)?
Could you please share a detailed step-by-step solution for users who are not experts in JS (and have to manage with basic HTML & CSS knowledge)?

Your help will be much appreciated - as I browsed the forum it seams like it is an often request to skip the necessity to use the "username" instead of just an email. However, so far there was no "easy to follow" guide for the less advanced users.
Title: Re: How to simplify registration process? (use email as username)
Post by: GJC Web Design on January 02, 2015, 18:23:33 PM
It is all done in the registration template - so over ride it

templates\YOUR_TEMPLATE\html\com_virtuemart\user\edit_address_userfields.php

There are plenty of tutorials on how to fill a field with another via JS - jquery is std. in VM so it is even simpler if u use that

here's one I did the last time ( not jquery)

<script type="text/javascript">
   document.getElementById("email_field").setAttribute("onchange", "mail_is_user()");
   
    function mail_is_user(){
      var reg_email = document.getElementById("email_field").value
      document.getElementById("username_field").value = (reg_email);
   }
       
</script>
Title: Re: How to simplify registration process? (use email as username)
Post by: stanislavus on January 02, 2015, 20:08:00 PM
Thank you. It's simple & genius!
Your support is very much appreciated!
Title: Re: How to simplify registration process? (use email as username)
Post by: rage76 on May 04, 2018, 19:38:48 PM
is there a module that allows VM registration simply through email input and captcha. All the other fields (shipping info) are optionally expandable via a check box?

This would facilitate easy user registration and acquisition.
Title: Re: How to simplify registration process? (use email as username)
Post by: Studio 42 on May 06, 2018, 15:25:06 PM
Quote from: rage76 on May 04, 2018, 19:38:48 PM
is there a module that allows VM registration simply through email input and captcha. All the other fields (shipping info) are optionally expandable via a check box?

This would facilitate easy user registration and acquisition.
You need full bill adress for virtuemart.
You can register Joomla user, to simplfy the registration process, but in all case, your customer have to enter the billing adress on doing a chekcout.
Title: Re: How to simplify registration process? (use email as username)
Post by: rage76 on May 07, 2018, 10:42:51 AM
Many thanks for the reply. I understand that full address details are required during checkout. But many visitors might not want to make a purchase and only like to register !!

In such a case, is there a way to ask the visitor via a checkbox, if they wish to make a purchase or not.

If not, they may be allowed to register via joomla registration, without entering complete billing details !!??
Title: Re: How to simplify registration process? (use email as username)
Post by: jenkinhill on May 07, 2018, 11:34:35 AM
They can register using Joomla's mod_login, and then when they come to the cart, they log in using the J! credentials and are then asked to fill in bill/ship info.
Title: Re: How to simplify registration process? (use email as username)
Post by: Studio 42 on May 07, 2018, 14:45:38 PM
Quote from: rage76 on May 07, 2018, 10:42:51 AM
Many thanks for the reply. I understand that full address details are required during checkout. But many visitors might not want to make a purchase and only like to register !!

In such a case, is there a way to ask the visitor via a checkbox, if they wish to make a purchase or not.

If not, they may be allowed to register via joomla registration, without entering complete billing details !!??
You can modify the Joomla login form and add link to add bill to address
Title: Re: How to simplify registration process? (use email as username)
Post by: Jumbo! on May 07, 2018, 20:51:54 PM
Yes, you can allow registration only using email & captcha during checkout with VP One Page Checkout plugin - https://www.virtueplanet.com/extensions/vp-one-page-checkout

You just need to enable the following options in the plugin settings -

1. Auto Generate Username during Registration
2. Auto Generate Password during Registration
3. Hide Name Field in Registration Form
4. Show Captcha (If enabled)

For login, you can enable "Email as Username - Login" option.

Refer the documentation to learn more - https://www.virtueplanet.com/documentation/joomla-extensions/vp-one-page-checkout-user-guide-vm3

You can also check VP Advanced User which adds many more useful functionalities to core Joomla Users system - https://www.virtueplanet.com/extensions/vp-advanced-user
Title: Re: How to simplify registration process? (use email as username)
Post by: Milbo on May 08, 2018, 14:19:28 PM
Or you use my plugin https://extensions.virtuemart.net/shopper-order/orders/automated-numbers-detail

it automates a lot different fields. Invoicenumber, ordernumber, customernumber and even product attributs, for example SKUs. Furthermore it provides a more secure method to create sequential numbers.
Title: Re: How to simplify registration process? (use email as username)
Post by: rage76 on May 09, 2018, 19:12:52 PM
Dear Jumbo, I am asking for general registration and not during checkout.

I believe your plugin is suitable at the time of checkout only !!??

Quote from: Jumbo! on May 07, 2018, 20:51:54 PM
Yes, you can allow registration only using email & captcha during checkout with VP One Page Checkout plugin - https://www.virtueplanet.com/extensions/vp-one-page-checkout

You just need to enable the following options in the plugin settings -

1. Auto Generate Username during Registration
2. Auto Generate Password during Registration
3. Hide Name Field in Registration Form
4. Show Captcha (If enabled)

For login, you can enable "Email as Username - Login" option.

Refer the documentation to learn more - https://www.virtueplanet.com/documentation/joomla-extensions/vp-one-page-checkout-user-guide-vm3

You can also check VP Advanced User which adds many more useful functionalities to core Joomla Users system - https://www.virtueplanet.com/extensions/vp-advanced-user
Title: Re: How to simplify registration process? (use email as username)
Post by: Jumbo! on May 09, 2018, 20:53:00 PM
Yes, VP One Page Checkout plugin takes care of the registration process during checkout.