News:

Support the VirtueMart project and become a member

Main Menu

password required not validating

Started by GJC Web Design, October 20, 2013, 21:27:13 PM

Previous topic - Next topic

GJC Web Design

Hi

2.0.24

the ($_fld->required ? ' class="required"' : '') is missing (unless there's a reason for it) in administrator/components/com_virtuemart/models/userfields.php ~ line 861

original
case 'password':
case 'password2':
$_return['fields'][$_fld->name]['formcode'] = '<input type="password" id="' . $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name . '"  size="30" class="inputbox" />'."\n";
break;


changed to
case 'password':
case 'password2':
$_return['fields'][$_fld->name]['formcode'] = '<input type="password" id="' . $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name .'" '.($_fld->required ? ' class="required"' : ''). ' size="30" class="inputbox" />'."\n";
break;


validates nicely now

cheers

[attachment cleanup by admin]
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

AH

Does this not mess up optional registration??
Regards
A

Joomla 4.4.5
php 8.1

GJC Web Design

Could very well  ;)

But I have an ingrained hatred of non registering shops - refuse to build them cos I find the whole concept ridiculous.. so never tested

but then I'm just an old moaner..  :)

so in a word I don't know - but many clients ask me why the signup page is such a mix of asterisks, red errors and non red errors
Think it's better to have consistent validation...
this one at least it's all of a piece.. so not a bug - perhaps should be moved (the topic?)

cheers
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

AH

LOL

We have exactly the opposite view of registration.  We want to get customers through to paying asap and as most only visit us once, we let them register if they want to but don't force them.

I will leave the post here though.
Regards
A

Joomla 4.4.5
php 8.1