VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: merlyno79 on January 28, 2014, 13:09:41 PM

Title: Custom dependant fields into VM2 registration form
Post by: merlyno79 on January 28, 2014, 13:09:41 PM
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?


Thanks