News:

Looking for documentation? Take a look on our wiki

Main Menu

How to simplify registration process? (use email as username)

Started by stanislavus, January 02, 2015, 16:00:08 PM

Previous topic - Next topic

stanislavus

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!
Current specs:
Joomla! 2.5.9 PHP 5.6.3 VM  2.0.18a
Getting ready to upgrade (currently testing):
Joomla! 2.5.27 PHP 5.6.3 VM 3.0.2

GJC Web Design

When I need this I use a JS snippet to populate the fields with the email address and hide them with css
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

stanislavus

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.
Current specs:
Joomla! 2.5.9 PHP 5.6.3 VM  2.0.18a
Getting ready to upgrade (currently testing):
Joomla! 2.5.27 PHP 5.6.3 VM 3.0.2

GJC Web Design

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>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

stanislavus

Thank you. It's simple & genius!
Your support is very much appreciated!
Current specs:
Joomla! 2.5.9 PHP 5.6.3 VM  2.0.18a
Getting ready to upgrade (currently testing):
Joomla! 2.5.27 PHP 5.6.3 VM 3.0.2

rage76

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.

Studio 42

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.

rage76

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 !!??

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Studio 42

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

Jumbo!

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

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

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

Jumbo!

Yes, VP One Page Checkout plugin takes care of the registration process during checkout.