Osclass forums

Support forums => Themes => Bender => Topic started by: data99 on January 19, 2014, 03:46:30 am

Title: I can make Country as dropdown but I cant make Region and City , have latest
Post by: data99 on January 19, 2014, 03:46:30 am

I can make Country as dropdown  but I cant make  Region and City , have latest osclass with blender theme

Please help :)
Title: Re: I can make Country as dropdown but I cant make Region and City , have latest
Post by: friend4chams on November 14, 2014, 01:04:32 pm
Please tell me how to make the country drop down thank you.
And
I also need something like that and searched the forum found many people asking for this type of options but these kind of post were never replied.

I have posted the same idea on http://osclass.uservoice.com/forums/183966-general/suggestions/6714009-side-bar-cities-under-regions-selections-region (http://osclass.uservoice.com/forums/183966-general/suggestions/6714009-side-bar-cities-under-regions-selections-region)

Please vote for it.
Title: Re: I can make Country as dropdown but I cant make Region and City , have latest
Post by: jkachhara on January 15, 2015, 05:38:56 pm
I ALSO WANT SOLUTION FOR THIS....
Title: Re: I can make Country as dropdown but I cant make Region and City , have latest
Post by: BC-Products on January 15, 2015, 06:25:34 pm
Search for region:

Code: [Select]
<?php $listRegions Region::newInstance()->listAll(); ?>
<?php if(count($listRegions) >= ) { ?>
    <select id="sRegion" name="sRegion">
        <option value=""><?php _e('Select Region''your_theme'); ?></option>
        <?php foreach($listRegions as $region) { ?>
        <option value="<?php echo $region['pk_i_id']; ?>"<?php if(Params::getParam('sRegion') == $region['pk_i_id']) { ?>selected<?php ?>><?php echo $region['s_name'] ; ?></option>
        <?php ?>
    </select>
<?php ?>

Search for city:

Code: [Select]
<?php $listCities City::newInstance()->listAll(); ?>
<?php if(count($listCities) >= ) { ?>
    <select id="sCity" name="sCity">
        <option value=""><?php _e('Select City''your_theme'); ?></option>
        <?php foreach($listCities as $city) { ?>
        <option value="<?php echo $city['s_name']; ?>"<?php if(Params::getParam('sCity') == $city['s_name']) { ?>selected<?php ?>><?php echo $city['s_name'] ; ?></option>
        <?php ?>
    </select>
<?php ?>
Title: Re: I can make Country as dropdown but I cant make Region and City , have latest
Post by: BerniBCN on January 21, 2015, 11:18:15 am
sorry, wrong post  :-[