News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove Displayed Name / username field

Started by littlesnack, September 04, 2012, 17:39:13 PM

Previous topic - Next topic

Milbo

https://hueniverse.com/2016/01/26/how-to-use-open-source-and-shut-the-gentle-up-at-the-same-time/

Btw you told something about 6 weeks, that is wrong. It is not our fault, that paypal does not work in turkey
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

thepet

Hi there,

I'm sorry to say, but I've the same problem with all this "names"

It really doesn't make sense that a normal user MUST enter his name (or any other "Displayed Name"), just because he wants to register.

Username, Password, and Emailaddress, that's it...  ;)

Why don't you guys not just give your customers the freedom to choose whether they want to require this or not.

And it's not true that Joomla requires this strongly, You can disable this in Joomla by editing an .xml and Joomla still works...

As a workaround it would be very nice if you just publish the code location and lines, which need to be changed and let us know, how.

Please consider... :)
Hartmut - thepet

Rune Rasmussen

Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

thepet

Hi Rune Rasmussen,

this was actually not the answer I expected  ;)

Or should I...?

I cannot see to purchase an extension, which may does not do what it should, just because of removal of a feature that nobody wants :-)

Any other idea?

Best Regards

Hartmut
Hartmut - thepet

Rune Rasmussen

Then you are free to modify the VirtueMart etc. as you like as it's open source with GPL license.
I have no idea what you expect, or why ...

The extension works perfectly fine for those being able to install and configure things correctly. Those who can't should maybe consider buying a ready to go system, VirtueMart doesn't fit for all. Sometimes I hate it myself ... ;)
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

GJC Web Design

it's just some simple js replacement and hide the field

any google will show u how to fill one field with another

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

I unpub the "name" in the DB (or hide with css and fill by js) and use the email as username

<?php
if ($addrtype != 'ST') {
?>
<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);
      document.getElementById("name_field").value = (reg_email);
   }
</script>
<?php  } ?>


http://www.greenpackshop.com.au/my-account/editaddresscartBT
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

luke67

Hi all,

Same issue here.
I use Joomla! 3.6.5 with VirtueMart 3.0.18.

When a customer register with username, password, company name and address thats enough for my site.
Unfortunately when in the backend I disable the field 'name' (COM_VIRTUEMART_USER_DISPLAYED_NAME) (the field for the displayed name) it's no longer possible for a customer to register.

How to handle this issue?

Luke

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

thefbi

Quote from: GJC Web Design on November 09, 2016, 22:14:12 PM
it's just some simple js replacement and hide the field

any google will show u how to fill one field with another

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

I unpub the "name" in the DB (or hide with css and fill by js) and use the email as username

<?php
if ($addrtype != 'ST') {
?>
<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);
      document.getElementById("name_field").value = (reg_email);
   }
</script>
<?php  } ?>


http://www.greenpackshop.com.au/my-account/editaddresscartBT

Hello and thank you GJC Web Design.

I have used your trick, but only for fill the name field and use the username normally (i dont use the email address but username).

What i have made :

I have modify your file like this :
<?php
if ($addrtype != 'ST') {
?>

<script type="text/javascript">
    document.getElementById("username_field").setAttribute("onchange", "username_is_name_field()");
   
    function username_is_name_field(){
      var reg_fill_name_field = document.getElementById("username_field").value
      document.getElementById("name_field").value = (reg_fill_name_field);
   }
</script>
<?php  ?>


I have put in my template css override :
/* For hide name_field in VM */
input[id="name_field"] {
    display: none;
   
}

/* For hide name label in VM */
.name {
    display: none;
   
}


So i have hided the name and label filed in the form, but not unpunished by VM config (it dosent work).

So now, when user register directly to the "my account" menu, the name field is hided but filled with the username field.

I use VP One page Checkout for the checkout, so if user place an order and register by VP it is Ok because i can hide the name field in the config of VP.
The problem I had was if users wanted to register directly before placing an order.

I hope that help someone :)


scottt

Quote from: thefbi on April 02, 2018, 10:34:03 AM
I hope that help someone :)
@ GJC & fbi
Just the solution I was looking for! Thanks a million!

NoOneLt

Hello,

Is thera any updates to the problem in VM+Joomla standard?

Or fix is only by code as explained here?

THanks!

GJC Web Design

Quotefix is only by code as explained here
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

NoOneLt

GJC i have implemented your recommended setup where Login = email, name and username is hidden by CSS but i have one problem here that in account maintenance email field is visible and editable and i can change it (and afraid that users will do by mistake), of course it does not change login name but changes name and email for user.

Have you solved this somehow?

Thanks

GJC Web Design

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