This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

pitbull

  • ***
  • 98 posts
How to get back the classic osclass location dropdown fields ??
« on: February 05, 2018, 09:32:51 AM »
Hi @frosticek.

I want to use the classic osclass depentant dropdown fields for location (country-region-city) when i post an item. How can i do that?

*

MB Themes

Re: How to get back the classic osclass location dropdown fields ??
« Reply #1 on: February 05, 2018, 11:14:08 AM »
@pitbull
You may use what osclass has in core (look in docs), but as far as I remember they were functional maybe on 80%. Veronika theme does not have own function for dropdowns.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: How to get back the classic osclass location dropdown fields ??
« Reply #2 on: February 05, 2018, 01:26:49 PM »
@pitbull
You may use what osclass has in core (look in docs), but as far as I remember they were functional maybe on 80%. Veronika theme does not have own function for dropdowns.

Yep i just built the function and now is fully working. I rewrote the code, and added an option to veronika theme settings (backend) so i can activate/deactivate the location picker between veronika autosuggestion location and osclass classic drop down fields.

;)

*

rosistyles

  • ***
  • 28 posts
Re: How to get back the classic osclass location dropdown fields ??
« Reply #3 on: March 01, 2018, 07:53:56 AM »
Hello

I'm very interested in this function, maybe you can share this with me?

kind regards

Tobias

*

bobyrou

  • ****
  • 107 posts
Re: How to get back the classic osclass location dropdown fields ??
« Reply #4 on: March 02, 2018, 11:09:05 AM »
same, please

Re: How to get back the classic osclass location dropdown fields ??
« Reply #5 on: March 23, 2018, 11:38:57 PM »
@pitbull
You may use what osclass has in core (look in docs), but as far as I remember they were functional maybe on 80%. Veronika theme does not have own function for dropdowns.
How do we solve this?

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: How to get back the classic osclass location dropdown fields ??
« Reply #6 on: March 27, 2018, 09:55:02 PM »
@pitbull
You may use what osclass has in core (look in docs), but as far as I remember they were functional maybe on 80%. Veronika theme does not have own function for dropdowns.

Yep i just built the function and now is fully working. I rewrote the code, and added an option to veronika theme settings (backend) so i can activate/deactivate the location picker between veronika autosuggestion location and osclass classic drop down fields.

;)

Hey bro, could you please share the code to have the classic drop-down, thanks
LaKompra.com

*

eddy

  • ***
  • 38 posts
Re: How to get back the classic osclass location dropdown fields ??
« Reply #7 on: June 29, 2018, 10:00:46 AM »
@pitbull
You may use what osclass has in core (look in docs), but as far as I remember they were functional maybe on 80%. Veronika theme does not have own function for dropdowns.

Yep i just built the function and now is fully working. I rewrote the code, and added an option to veronika theme settings (backend) so i can activate/deactivate the location picker between veronika autosuggestion location and osclass classic drop down fields.

;)
Please Kindly share.

Marked as best answer by frosticek on June 29, 2018, 08:49:57 PM
*

Locan

  • ****
  • 166 posts
Re: How to get back the classic osclass location dropdown fields ??
« Reply #8 on: June 29, 2018, 03:46:19 PM »
Code: [Select]
<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>


add in item post or edit  page where you want to show it

Re: How to get back the classic osclass location dropdown fields ??
« Reply #9 on: July 20, 2018, 01:22:41 PM »
Pls do i need to delete the code for the deafult auto complete before i can paste this code