*

Vinny Vishwa

  • **
  • 9 posts
when I am publishing a ad I want to get drop down region city country....
please help me any body....

*

Jklb

  • ***
  • 54 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #1 on: April 14, 2017, 02:21:28 PM »
hi,

I'm facing the same issue,
because here we have two location field one which takes everythings
country, regions, city then the second one takes city areas

it's ended up causing trouble with the googlemap wich does know what to display
because at the end we seems to have two cities name

could you make it same as bender theme or zara
or could you help on how I can make it that way

*

vidjii

  • ***
  • 59 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #2 on: April 14, 2017, 02:38:52 PM »
+1 same issue :/

That's why I need to add the city and region mandatory.

http://prnt.sc/ewdkdl

The solution would be to make the ad addition form like Zara for the country city region field

*

mr-merk

  • **
  • 9 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #3 on: April 16, 2017, 08:10:42 AM »
Hello.
this code add list region in item-post.php.
I do not know how much he is working!
Please TEST!!

item-post.php
after </head> paste
Code: [Select]
<?php ItemForm::location_javascript(); ?>
and

delete this code
Code: [Select]
  <div class="row">
            <input type="hidden" name="countryId" id="sCountry" class="sCountry" value="<?php echo $prepare['i_country']; ?>"/>
            <input type="hidden" name="regionId" id="sRegion" class="sRegion" value="<?php echo $prepare['i_region']; ?>"/>
            <input type="hidden" name="cityId" id="sCity" class="sCity" value="<?php echo $prepare['i_city']; ?>"/>

            <label for="term"><?php _e('Location''veronika'); ?> <span class="req">*</span></label>

            <div id="location-picker">
              <input type="text" name="term" id="term" class="term" placeholder="<?php _e('Country, Region or City''veronika'); ?>" value="<?php echo veronika_get_term(veronika_get_session('term'), $prepare['i_country'], $prepare['i_region'], $prepare['i_city']); ?>" autocomplete="off"/>
              <div class="shower-wrap">
                <div class="shower" id="shower">
                  <div class="option service min-char"><?php _e('Type country, region or city''veronika'); ?></div>
                </div>
              </div>

              <div class="loader"></div>
            </div>
          </div>

          <div class="row">
            <label for="address"><?php _e('City Area''veronika'); ?></label>
            <div class="input-box"><?php ItemForm::city_area_text($prepare); ?><i class="fa fa-map-pin"></i></div>
          </div>

and paste this

Code: [Select]
   <div class="row">
                        <label for="address"><?php _e('Region''veronika'); ?> <span>*</span></label>
                        <div class="select input-box">
                            <?php ItemForm::region_select(osc_get_regions(), osc_user()) ; ?>
                        </div>
                    </div>
                    <div class="row">
                        <label for="address"><?php _e('City''veronika'); ?> <span>*</span></label>
                        <div class="select input-box">
                            <?php ItemForm::city_select(osc_get_cities(osc_user_region()), osc_user()) ; ?>
                        </div>
                    </div>

*

mr-merk

  • **
  • 9 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #4 on: April 17, 2017, 11:32:45 AM »
Hi. Who test this code?
I tested this code, work good problem not, but drop down list not sorting regions(((.
Who help me)?
Please!!

*

vidjii

  • ***
  • 59 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #5 on: April 18, 2017, 01:32:03 PM »
I'm not trying yet , I would like a frosticek back before if it can check to be on to have a code that works

*

MB Themes

Re: when I am publishing a ad I want to get drop down region city country
« Reply #6 on: April 18, 2017, 03:18:32 PM »
@vidjii
Code: [Select]
<?php ItemForm::location_javascript(); ?>
Will place javascript code for dropdowns to make them work, however from my experience this code is just half-done. It does not expect all the situations and is not 100% reliable. That is reason why in Zara theme has been developed similar code from scratch.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

vidjii

  • ***
  • 59 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #7 on: April 20, 2017, 05:30:05 PM »
Thank you I will wait for a real solution because all my ads the user adds their city in the field city area and the city arena field is not used for geo location.

*

Nijam Utheen

  • ***
  • 28 posts
how to get drop down option like https://prnt.sc/ewdkdl city.country.region in veronica themes instead of search 3 character
« Last Edit: July 29, 2017, 05:42:54 PM by Nijam Utheen »

*

MB Themes

@Nijam
Theme does not provide such functionality.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nijam Utheen

  • ***
  • 28 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #10 on: July 31, 2017, 11:27:21 AM »
so do i want to modify osclass ?
is that method correct ? https://doc.osclass.org/Changing_between_drop-down_and_autocomplete_for_locations
« Last Edit: July 31, 2017, 04:25:01 PM by Nijam Utheen »

*

nijamutheen

  • ****
  • 110 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #11 on: August 02, 2017, 02:24:23 AM »
please fix this problem immediately because lot of user complaint against this and also they did not know what they  want select see you mentioned country,region,city  when i search  as you told it shows different http://prntscr.com/g37rns then i search city wise agian  it showed city and region only see http://prntscr.com/g37sac

i think better you provide drop down when posting  only please support immediate

*

MB Themes

Re: when I am publishing a ad I want to get drop down region city country
« Reply #12 on: August 03, 2017, 03:34:50 PM »
@nijamutheen
There is no problem reported, just custom requirement. For those I recommend to hire developer.
I have never told to search in that way. In placeholder you have: Country, Region or City, I do not see there Country + Region + City.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

nijamutheen

  • ****
  • 110 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #13 on: August 04, 2017, 03:05:51 PM »
after earn some money surely i will hire a developer currenlty i'm in bad suitation that is why i'm asking support

*

nijamutheen

  • ****
  • 110 posts
Re: when I am publishing a ad I want to get drop down region city country
« Reply #14 on: August 05, 2017, 12:13:09 PM »
have any offer to hire developer ? is that above code  sorting country based ?
i don't want dropdown searching option only need for while  posting ad  that is ok
« Last Edit: August 05, 2017, 12:16:32 PM by nijamutheen »