*

unlimit

  • ***
  • 25 posts
Small Bug Reset Filters in Mobile view
« on: March 05, 2019, 04:33:21 PM »
There is no such reset filter option in mobile responsive view in theme.
I have added following line to show in mobile view but not reset as in PC view.

Code: [Select]
<a href="<?php echo osc_search_url(array('page' => 'search'));?>" class="clear-search clear-cookie "><?php _e('Reset filter''stela'); ?></a>.
Please help to solve this.
Thanks

*

MB Themes

Re: Small Bug Reset Filters in Mobile view
« Reply #1 on: March 06, 2019, 09:51:13 AM »
@unlimit
It should reset.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unlimit

  • ***
  • 25 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #2 on: March 07, 2019, 01:52:06 PM »
No.

You can try with demo.

It doesn't reset location when you want to clear the location field at filters in responsive view.

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unlimit

  • ***
  • 25 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #4 on: March 08, 2019, 04:36:03 PM »
No it doesn't work in MOBILE RESPONSIVE VIEW

Eg:

1- Go to search page  (https://stela.mb-themes.com/search)

2- Click filters --------------> Location to ( Edson, Kansas, US)

3- Click search

   This will shows all listings for Edson, Kansas, US location

Then i want to go back to all listings

So i again click filters

2- Clear the location feild

3 Click seach

4 - But still it shows listings from Edson, Kansas, US location
 and you will see the above location is still active when you click the filters again.



But if you go to main page and click search button, all listings will appear.

This is only for MOBILE VIEW
PC view work good.

Thanks

*

unlimit

  • ***
  • 25 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #5 on: March 08, 2019, 04:46:23 PM »
It's perfectly working in Veronika theme

*

unlimit

  • ***
  • 25 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #6 on: March 09, 2019, 06:26:58 AM »
More---------------

Only items with pictures check box not working in MOBILE RESPONSIVE VIEW

*

MB Themes

Re: Small Bug Reset Filters in Mobile view
« Reply #7 on: March 09, 2019, 10:41:49 AM »
Will look on it
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #8 on: March 10, 2019, 01:24:00 PM »
Indeed, there is a problem in resetting the location in the mobile version for Stela

*

MB Themes

Re: Small Bug Reset Filters in Mobile view
« Reply #9 on: March 11, 2019, 12:30:45 PM »
@Dan
In file:
oc-content/themes/stela/search.php

Find line:
Code: [Select]
<button type="submit" class="btn btn-secondary is767" id="search-button-mobile"><?php _e('Search''stela'); ?></button>
Bellow this line add:
Code: [Select]
<a href="<?php echo osc_search_url(array('page' => 'search''clearCookieAll' => 'done'));?>" class="clear-search clear-cookie <?php echo $side?> is767"><?php _e('Reset filter''stela'); ?></a>
You will now have button to reset filters in mobile view.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #10 on: March 11, 2019, 05:53:46 PM »
The reset button appears but, I'm sorry, the code does not work.
The function resets all previously searched criteria, less the location (in the mobile version). In desktop version everything is ok.
« Last Edit: March 11, 2019, 07:08:17 PM by Dan Dan »

*

MB Themes

Re: Small Bug Reset Filters in Mobile view
« Reply #11 on: March 11, 2019, 08:29:15 PM »
@Dan
I've checked and working properly on demo site.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #12 on: March 11, 2019, 10:01:36 PM »
I re-verified Stela's theme on localhost. We have disabled all existing plugins and deleted the cookie
In the mobile version, all the search criteria are reset, but it remains the last location you are looking for. I do not know what is the cause or the solution. :(

*

MB Themes

Re: Small Bug Reset Filters in Mobile view
« Reply #13 on: March 12, 2019, 07:15:55 AM »
@Dan
Try to disable cookies usage in theme settings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: Small Bug Reset Filters in Mobile view
« Reply #14 on: April 07, 2019, 11:51:28 AM »
@Dan
Try to disable cookies usage in theme settings.

@Frosticek
I've solved my problem.
The location is not reset because in setting the Stela theme, we have enabled saving the storage of search parameters in cookies.
We have disabled this option and now everything is fine.
Mark as solved the subject
Thank you