Support Forums - Classified Ads Script Osclass

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: terry on April 12, 2017, 10:25:22 AM

Title: Mobile Parent Category View
Post by: terry on April 12, 2017, 10:25:22 AM
I've just noticed that when you view a parent category, it only shows 1 listing even though there are more listings in the child categories. Another parent category show none.

Does it have anything to do with cookies and the location I have "okayed" with? Am I missing a setting somewhere.

If so would it be possible to add a div under the categories/subcategories with the current location and category the user is on? Where would I find this code?


Thank you.
Title: Re: Mobile Parent Category View
Post by: MB Themes on April 12, 2017, 11:33:06 AM
@terry
You have location in search sidebar that can be accessed from header.
Title: Re: Mobile Parent Category View
Post by: terry on April 12, 2017, 11:41:30 AM
Thanks @frosticek - this only shows on the homepage though - would it work if I copy the code for just the location into the header of category pages?
Title: Re: Mobile Parent Category View
Post by: MB Themes on April 15, 2017, 02:39:18 PM
I do  not think it will work without problems
Title: Re: Mobile Parent Category View
Post by: terry on April 15, 2017, 02:59:49 PM
What if I just echo the current category (like the breadcrumbs) and current location (no filter etc, just pure text) into a div under the "Subcategories" button. Would you be able to tell me the code to this or where I can look?

Thanks again
Title: Re: Mobile Parent Category View
Post by: MB Themes on April 16, 2017, 11:13:38 AM
@terry
You can user helper functions:
https://doc.osclass.org/HSearch.php

osc_search_region() - Gets current search region
osc_search_city() - Gets current search city

Title: Re: Mobile Parent Category View
Post by: terry on April 16, 2017, 11:35:43 AM
@frosticek
Fantastic! This really helps. Thank you