VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: ahmednaser90 on May 04, 2017, 12:51:16 PM

Title: add city dropdown as state shopper address virtuemart joomla 3
Post by: ahmednaser90 on May 04, 2017, 12:51:16 PM
i created table xyz_virtuemart_cities with 3 columns:

virtuemart_city_id , city_name, city_code

then created a field in shopper fields virtuemart as single dropdown

by field name: virtuemart_city_id and title :city

but it appears at frontend with no city in dropdown

how to connect my dropdown to the table ?
Title: Re: add city dropdown as state shopper address virtuemart joomla 3
Post by: Studio 42 on May 04, 2017, 22:01:47 PM
It's not so simple, you have to create a plugin to get results from mysql or json file
See for eg: JOOMLAROOT\plugins\vmuserfield\realex_hpp_api\
Another solution is to write a Joomla system plugin, if you need more freedom or Joomla com_ajax is another solution.