Conditional required field(s) in registration / delivery address form(s)

29.03.2011 10:38
#1
Onofrei
Joomshopping forum user no avatar
Name: Mihai-Codrut
06.03.2011
Posts: 55
Quote
Conditional required field(s) in registration / delivery address form(s)

I came back with a sugestion I made in another thread of this forum.

It may be useful to have a first (required!) field - Customer Type (person or company).
Then, if Person - automatic display required fields Name, Personal Identification Number etc.
If Company - automatic display required fields Company Name, Company Identification Number, VAT ID etc.

I guess I can modify myself the files for this purpose, but I think it would be a real gain for all JShop users to have it included by default in the code.

Regards,


Joomla: 1.5.22
JoomShopping: 2.8.0
PHP: 5.3.3
 
29.03.2011 10:42
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25904
Quote
Aw: Conditional required field(s) in registration / delivery address form(s)

Configuration - Fields Registration
administrator/index.php?option=com_jshopping&controller=config&task=fieldregister

 
29.03.2011 11:01
#3
Onofrei
Joomshopping forum user no avatar
Name: Mihai-Codrut
06.03.2011
Posts: 55
Quote
Aw: Conditional required field(s) in registration / delivery address form(s)

Maybe I wasn't quite explicit.
I am aware of administrator/index.php?option=com_jshopping&controller=config&task=fieldregister settings but I didn't mean that.
It doesn't make any sense to have fields like Company Name, VAT ID displayed if the customer is a private person.
So "Customer Type" should be the first field of type non-editable in the config (the same way fields like Name, UserName, Password, Confirm Password are - they cannot be unchecked).
Then, in the frontend, if Customer Type = Company display Company-specific fields like VAT ID; if Customer Type = Privat display personal-specific fields like Personal ID Number.
I hope I make myself clear this time :)

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.