how to overcome "missing value" error on registration page?

Started by guybr, January 04, 2015, 12:05:21 PM

Previous topic - Next topic

guybr

Hi, in VM 2.6.6 the registration field for "State / Province / Region" is required - but has no values. If a user enters a country that has no values in that field, he gets an error.

Where can I change the status of that field to being non-required?

GJC Web Design

just tested on a clean 2.6.12 install

set state to required

selected country with no states set

validation was ignored and could register

mind you with State required the validation was also ignored even for countries with states

no required="required" set on State even though the asterisk appears... hmmmmm ... does required="required" appear on your State option?

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

guybr

judging by the form on the user.html page, yes.

Oddly, on the backend, my test account details were saved - but I can't log in.

What file controls that form?

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

guybr

...I'm not managing to find it: I checked com_users but I don't have such a file in the "models" directory, I also checked com_virtuemart but didn't find anything relevant in the "user" subdirectory -?

GJC Web Design

Instead of getting involved in core hacking I would recommend you work out a javascript solution to this
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

guybr

...but what page / code am I trying to work from? I can't find the source code for the VM registration form...

guybr

the solution may be easier than making an override: to edit the fields on the VM registration page, just go to admin configuration and look for the "shopper fields" screen. There you can select/de-select fields and their necessity for completing registration

GJC Web Design

well - I assumed you had already checked the option you wanted there!!!!
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