*

Ivanko

  • *****
  • 391 posts
Search of sub cat is not working on mobile.
« on: January 20, 2018, 11:50:19 PM »
How to make working search in mobile version for sub cat ?

I have  : Cars -> LightCars -> Alfa Romeo

If I am on desktop into Alfa Romeo category, normal search or ajax  is working good

In mobile version in search bar  I can select only Main category, or..OR,...
if I am IN - into Alfa romeo category, after applying the search, site returns me on main category - Cars and of course passing all ads without filtering.


In desktop, when I am into alfa romeo sub category no3, after applying search button the  link is like:
http://127.0.0.1/production/search/category,601/sOrder,dt_pub_date/i......

on mobile, when I am into alfa romeo sub category no3, after applying search button the  link is like:
http://127.0.0.1/production/search/sOrder,dt_pub_date/i.....


In mobile view missed category,601

How to keep holding category in search, when browsing on website and want to apply search filter ? :o


ver.1.1.12
« Last Edit: January 21, 2018, 12:09:10 AM by Ivanko »

*

MB Themes

Re: Search of sub cat is not working on mobile.
« Reply #1 on: January 21, 2018, 10:15:25 AM »
@Ivanko
Recently there were some problems using inputs/selects with name "category", try to change it to "sCategory" (footer.php)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 391 posts
Re: Search of sub cat is not working on mobile.
« Reply #2 on: January 21, 2018, 12:10:49 PM »
sCategory already here in footer.

adding this helps me

Code: [Select]
      <?php
        $aCategories 
osc_search_category();
        foreach(
$aCategories as $cat_id) { ?>

            <input type="hidden" name="sCategory[]" value="<?php echo osc_esc_html($cat_id); ?>"/>
        <?php ?>


*

Ivanko

  • *****
  • 391 posts
Re: Search of sub cat is not working on mobile.
« Reply #3 on: January 21, 2018, 11:15:41 PM »
It is searching for one time, in next time quantity of ads in meta are zero (

can you share correct code for footer.php with working searching in mob.view.  :-\ ::)

*

MB Themes

Re: Search of sub cat is not working on mobile.
« Reply #4 on: January 22, 2018, 08:34:09 AM »
@Ivanko
I've checked functions.php for veronika_simple_category and everything seems to be allright, category field has correct name:

Code: [Select]
    $html  = '<select class="sCategory" id="sCategory" name="sCategory">';

but your question was different, subcategories are not showing there, will update theme soon to work with them as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 391 posts
Re: Search of sub cat is not working on mobile.
« Reply #5 on: January 22, 2018, 09:30:43 AM »
Ok thanks, will be great if you advise which files will be modified, so I can download new Theme and upgrade only necessary files.

Re: Search of sub cat is not working on mobile.
« Reply #6 on: July 25, 2018, 08:19:01 PM »
When can we see the sub-categories in the new theme update?

*

Ivanko

  • *****
  • 391 posts
Re: Search of sub cat is not working on mobile.
« Reply #7 on: August 03, 2018, 10:17:46 AM »
Agree, one of required thing to be done.