*

Fabio Massaro

  • *****
  • 306 posts
Location Veronika ????'
« on: January 28, 2022, 09:06:38 AM »
Hello everyone, can you help me change the way to publish the position on public announcement
Let me explain better about the delta theme when you go to post an ad it gives you region and city. I would like to put veronika's place instead where you write the location where you want to advertise

https://prnt.sc/26kmkvf    here's how about delta
https://prnt.sc/26kmldu   this is how I would like it by writing the city where you want to post
« Last Edit: January 28, 2022, 09:10:04 AM by Fabio Massaro »

*

MB Themes

Re: Location Veronika ????'
« Reply #1 on: January 28, 2022, 11:37:38 AM »
@Fabio
This kind of location selector is available in user profile page on Delta theme, so you can copy it from there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #2 on: January 28, 2022, 08:22:38 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #3 on: January 28, 2022, 08:37:50 PM »
I see that on admin edit items page is selector that i am interested in (Country / Region / City/) from what file to take that code to add it on item_post.php?

oc-admin/index.php?page=items&action=item_edit&id=82

I don't find item_edit.php on oc-admin folder!

Thanks

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #4 on: January 28, 2022, 09:34:33 PM »
since I asked for help you can tell me how you did it and which code to insert and where

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #5 on: January 28, 2022, 09:49:35 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #6 on: January 28, 2022, 09:51:58 PM »
Hello Fabio,

In in item-post.php replace:

Code: [Select]
<fieldset class="s2">
        <h2><?php _e('Location''delta'); ?></h2>

        <div class="in">
          <div id="location-picker" class="loc-picker picker-v2 ctr-<?php echo (del_count_countries() == 'one' 'more'); ?>">
            <label for="term2"><span><?php _e('Where is your item located?''delta'); ?></span><span class="req">*</span></label>

            <div class="mini-box">
              <input type="text" id="term2" class="term2" placeholder="<?php _e('City/Region''delta'); ?>" value="<?php echo del_get_term(''$prepare['i_country'], $prepare['i_region'], $prepare['i_city']); ?>" autocomplete="off" readonly/>
              <i class="fa fa-angle-down"></i>
            </div>
           
            <?php $countries Country::newInstance()->listAll(); ?>

            <div class="shower-wrap">
              <div id="shower" class="shower <?php if(is_array($countries) && count($countries) > 1) { ?>multi-country<?php ?>">
                <?php echo del_locbox_short($prepare['i_country'], $prepare['i_region'], $prepare['i_city']); ?>
                <a href="#" class="btn btn-primary mbBg loc-confirm isMobile"><i class="far fa-check-square"></i> <?php _e('Submit''delta'); ?></a>

                <div class="button-wrap isTablet isDesktop">
                  <a href="#" class="btn btn-primary mbBg loc-confirm"><i class="far fa-check-square"></i> <?php _e('Submit''delta'); ?></a>
                </div>
              </div>
            </div>

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


          <div class="loc-more">
            <div class="row city-area">
              <label for="address"><?php _e('City Area''delta'); ?></label>
              <div class="input-box"><?php ItemForm::city_area_text($prepare); ?></div>
            </div>

            <div class="row address">
              <label for="address"><?php _e('Address''delta'); ?></label>
              <div class="input-box"><?php ItemForm::address_text($prepare); ?></div>
            </div>

            <div class="row zip">
              <label for="address"><?php _e('ZIP''delta'); ?></label>
              <div class="input-box"><?php ItemForm::zip_text($prepare); ?></div>
            </div>

          </div>
        </div>
      </fieldset>

with

Code: [Select]
<fieldset class="s2">
        <h2><?php _e('Location''delta'); ?></h2>

        <div class="in">
          <div id="location-picker" class="loc-picker picker-v2 ctr-<?php echo (del_count_countries() == 'one' 'more'); ?>">
            <label for="term2"><span><?php _e('City''delta'); ?></span><span class="req">*</span></label>

           
<div class="mini-box">
<div id="location-picker" class="loc-picker ctr-<?php echo (del_count_countries() == 'one' 'more'); ?>">
                  <input type="text" name="term" id="term" class="term" placeholder="<?php _e('City/Region''delta'); ?>" value="<?php echo del_get_term(Params::getParam('term'), del_ajax_country(), del_ajax_region(), del_ajax_city()); ?>" autocomplete="off"/>
                  <i class="fa fa-angle-down"></i>

                  <div class="shower-wrap">
                    <div class="shower" id="shower">
                      <?php echo del_def_location(); ?>
                    </div>
                  </div>

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

       

           

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

        </div>
      </fieldset>

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #7 on: January 28, 2022, 09:56:36 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

But i erased City Area, Address and ZIP because i don't use. So if you need City Area, Address and ZIP don't erase that code from item_post

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #8 on: January 28, 2022, 10:00:12 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

But i erased City Area, Address and ZIP because i don't use. So if you need City Area, Address and ZIP don't erase that code from item_post


thank you for the code I went to see your site ..... but the modification is not done well .... something is missing

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #9 on: January 28, 2022, 10:04:15 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

But i erased City Area, Address and ZIP because i don't use. So if you need City Area, Address and ZIP don't erase that code from item_post


thank you for the code I went to see your site ..... but the modification is not done well .... something is missing

I don't see anything wrong. At what do you reffer?

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #10 on: January 28, 2022, 10:04:47 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

But i erased City Area, Address and ZIP because i don't use. So if you need City Area, Address and ZIP don't erase that code from item_post


thank you for the code I went to see your site ..... but the modification is not done well .... something is missing

I don't see anything wrong. At what do you reffer?


i mean on mobile

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #11 on: January 28, 2022, 10:08:02 PM »
Hello, it works.
But how to put first country selector and after location selector.
Thanks



since I asked for help you can tell me how you did it and which code to insert and where

But i erased City Area, Address and ZIP because i don't use. So if you need City Area, Address and ZIP don't erase that code from item_post


thank you for the code I went to see your site ..... but the modification is not done well .... something is missing

I don't see anything wrong. At what do you reffer?


HEre it is an print screen....

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #12 on: January 28, 2022, 10:09:52 PM »
look on mobile as seen

*

Remus

  • ***
  • 45 posts
Re: Location Veronika ????'
« Reply #13 on: January 28, 2022, 10:29:30 PM »
look on mobile as seen

Yes i see that on mobile i can't write the locality just to choose from the list . Maybe will help us mb-themes.

Anyway for me is fine anyway!

*

Fabio Massaro

  • *****
  • 306 posts
Re: Location Veronika ????'
« Reply #14 on: January 29, 2022, 03:05:11 PM »
You would be so kind mb-theme to send us the code and where to insert it
so everyone can make the change whoever wants