News:

Support the VirtueMart project and become a member

Main Menu

registration form country binding related state event

Started by florihana, August 22, 2017, 15:48:17 PM

Previous topic - Next topic

florihana

Hi expert joomla users, sorry had been search a bit but really need some help,


Using joomla: 3.6
VirtueMart 3.0.18

In Joomla virtuemart for user registration form has country option and state option, if selcet USA then state will appear usa states options,does anyone knows how does virtuemart binding this event ?
I mean where could we find the related file code ? :'(


Cause My case is I want when a user click country as option = china, will show another input which request user write address in Chinese character

Thank you!!

hellorain

Hello,

You can find state list from below file.

components\com_virtuemart\helpers\shopfunctionsf.php   

function name is -> static public function renderStateList()

Best Regards,
hellorain.
Raincreatives - Virtuemart & Mobile Commerce Experts

florihana

Thank you Hellorain

I also found it's called by AJAX, so I could find the related action from this file:
/components/com_virtuemart/assets/js/vmsite.js