VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: florihana on August 22, 2017, 15:48:17 PM

Title: registration form country binding related state event
Post by: florihana on August 22, 2017, 15:48:17 PM
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!!
Title: Re: registration form country binding related state event
Post by: hellorain on August 23, 2017, 07:54:16 AM
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.
Title: Re: registration form country binding related state event
Post by: florihana on August 23, 2017, 08:34:35 AM
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