*

Kashan Ali

  • **
  • 5 posts
hi i am using veronika theme the only thing i want is that i want to user drop down list rather than autocomplete in the location because is more easy any idea ?

i find the following code
Code: [Select]
<?php ItemForm::location_javascript_new(); ?>
to

<?php ItemForm::location_javascript(); ?>

item-edit.php, from :

<?php ItemForm::region_text() ; ?>
...
<?php ItemForm::city_text() ; ?>
to:

<?php ItemForm::region_select() ; ?>
...
<?php ItemForm::city_select() ; ?>

item-post.php, from :

<?php ItemForm::region_text(osc_user()) ; ?>
...
<?php ItemForm::city_text(osc_user()) ; ?>
to:

<?php ItemForm::region_select(osc_get_regions(osc_user_country_code()), osc_user()) ; ?>
...
<?php ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user()) ; ?>

frm.php, from :

<?php ItemForm::country_text($item) ; ?>
...
<?php ItemForm::region_text($item) ; ?>
...
<?php ItemForm::city_text($item) ; ?>
to:

<?php ItemForm::country_select( ) ; ?>
...
<?php ItemForm::region_select( ) ; ?>
...
<?php ItemForm::city_select( ) ; ?>

but is so long process do you have any better idea ? thanks

*

MB Themes

Re: I am using veronika theme how to turn it to dropdown location
« Reply #1 on: June 28, 2018, 01:08:03 PM »
Dropdown function is not present in theme
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Locan

  • ****
  • 166 posts
Re: I am using veronika theme how to turn it to dropdown location
« Reply #2 on: June 28, 2018, 05:21:21 PM »
item post page

<div class="row">
                            <label for="countryId"><?php _e('Country', 'theme); ?></label>
                            <?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
                        </div>
                        <div class="row">
                            <label for="regionId"><?php _e('City', 'theme'); ?></label>
                            <?php ItemForm::region_select(osc_get_regions(osc_user_region_id()), osc_user()) ; ?>
                        </div>
                        <div class="row">
                            <label for="city"><?php _e('City', 'theme'); ?></label>
                            <?php ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user()) ; ?>
                        </div>               
                        <div class="row">
                            <label for="address"><?php _e('Address', 'theme'); ?></label>
                            <?php ItemForm::address_text(osc_user()); ?>
                        </div>

*

Kashan Ali

  • **
  • 5 posts
Re: I am using veronika theme how to turn it to dropdown location
« Reply #3 on: June 30, 2018, 05:41:37 AM »
hello the code you send me can you please explain me how to apply it what code i need to remove and apply this code please thanks

Re: I am using veronika theme how to turn it to dropdown location
« Reply #4 on: July 04, 2018, 12:12:44 AM »
item post page

<div class="row">
                            <label for="countryId"><?php _e('Country', 'theme); ?></label>
                            <?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
                        </div>
                        <div class="row">
                            <label for="regionId"><?php _e('City', 'theme'); ?></label>
                            <?php ItemForm::region_select(osc_get_regions(osc_user_region_id()), osc_user()) ; ?>
                        </div>
                        <div class="row">
                            <label for="city"><?php _e('City', 'theme'); ?></label>
                            <?php ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user()) ; ?>
                        </div>               
                        <div class="row">
                            <label for="address"><?php _e('Address', 'theme'); ?></label>
                            <?php ItemForm::address_text(osc_user()); ?>
                        </div>

there is another js function should be attached...

*

Locan

  • ****
  • 166 posts
Re: I am using veronika theme how to turn it to dropdown location
« Reply #5 on: July 04, 2018, 03:25:18 PM »
no js require