Zen Cart Logo
Forums / All Other Contributions/Addons / add customer as admin mod -- how to extend it for master slave drop box?

add customer as admin mod -- how to extend it for master slave drop box?

Views: 569

Results 1 to 1 of 1
2 Nov 2011, 10:58 AM
#1
grossd avatar

grossd

Zen Follower

Join Date:
Sep 2005
Posts:
173
Plugin Contributions:
0

add customer as admin mod -- how to extend it for master slave drop box?

Hello,

Currently, the add customer as admin module includes an entry field for state (zone) while having a dropdown menu for country. Thsi is unlike the addressbook where for both the state and country there are dropdowns defined that work in a "master" "slave" relationsihp -- i.e. selecting a country repopulates the state dropdown.

I have been "fighting" with javascrip and php code trying to include this functionality in the mod also. Oddly, such a simple task seems to be so difficult to accomplish. I am wondering is there a simple javascript function that works with retrieving items from the db that can do that? Any samples i can look at: the code in the process_address_book that has similar functionality is incredibly convoluted. Its hard to understand what parts are related to this specific function.

any help would be much appreciated,

thanks,