Looking for documentation? Take a look on our wiki

Main Menu

Custom dependant fields into VM2 registration form

Started by merlyno79, January 28, 2014, 13:09:41 PM

Previous topic - Next topic


I'm using VM 2.0.26d and Joomla 2.5.17
I'm trying to understand if it possible to edit my registration VM2 form adding this feature:
I've a custom field "Company" and "Customer type" in my registration form.
If the customer choose the "Private customer" option as "Customer type", the "Company" field should be deactivate or hidden.
The "Company" field should be shown only if the customer choose the "Restaurant" or "Hotel" option in "Customer type" select list.
I found in \templates\swift\html\com_virtuemart\user\edit_address_userfields.php file the code:

<?php echo $field['formcode'] ?>

that prints all fields html code.
I cannot understand where $field['formcode']  points...
Can anybody help me to add this feature to my VM site?