News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

How do I show my entire category list even if 0 post in

Use this forum if you need help installing and/or setting up your instance of Tuffclassified theme. This is not the place for customization requests.
jarreddavis09
Starter
Posts: 20
Joined: Tue Apr 22, 2014 3:06 am
Been thanked: 1 time

How do I show my entire category list even if 0 post in

Post by jarreddavis09 » Wed Apr 23, 2014 10:57 pm

Hey I am having an issue my category list only shows categories that have ads in it. I would like for it to show all categories how can I fix this?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: How do I show my entire category list even if 0 post in

Post by tuffadmin » Fri Apr 25, 2014 8:12 pm

jarreddavis09 wrote:Hey I am having an issue my category list only shows categories that have ads in it. I would like for it to show all categories how can I fix this?
Open the file( layout you have chosen) and change

Code: Select all

osc_get_non_empty_categories()
to

Code: Select all

osc_get_categories()
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

jarreddavis09
Starter
Posts: 20
Joined: Tue Apr 22, 2014 3:06 am
Been thanked: 1 time

Re: How do I show my entire category list even if 0 post in

Post by jarreddavis09 » Fri Apr 25, 2014 11:43 pm

I chose bootstrap layout what file is that?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: How do I show my entire category list even if 0 post in

Post by tuffadmin » Sat Apr 26, 2014 4:47 am

That is color scheme, i was saying about homepage layout.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

thedon
Senior
Posts: 159
Joined: Sun May 26, 2013 2:00 pm
Has thanked: 3 times
Been thanked: 2 times

Re: How do I show my entire category list even if 0 post in

Post by thedon » Wed Nov 30, 2016 4:23 am

I am using 3.5.0 which file do i have to edit,i have done it in optional_layout.php and default_layout.php but still shows only ads that are posted in category (Select a Category)

http://www.freeclassifieds.trade

http://imgur.com/a/M3RXQ

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: How do I show my entire category list even if 0 post in

Post by tuffadmin » Thu Dec 01, 2016 7:00 pm

What layout you have chosen in theme settings?
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

thedon
Senior
Posts: 159
Joined: Sun May 26, 2013 2:00 pm
Has thanked: 3 times
Been thanked: 2 times

Re: How do I show my entire category list even if 0 post in

Post by thedon » Thu Dec 01, 2016 7:09 pm

Flatly

Header Layout Layout 1
Homepage Layout Default layout

thedon
Senior
Posts: 159
Joined: Sun May 26, 2013 2:00 pm
Has thanked: 3 times
Been thanked: 2 times

Re: How do I show my entire category list even if 0 post in

Post by thedon » Sun Dec 04, 2016 5:57 pm

Any reply

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: How do I show my entire category list even if 0 post in

Post by tuffadmin » Mon Dec 05, 2016 1:07 pm

Try this instead of osc_get_categories();

Code: Select all

osc_export_categories(Category::newInstance()->toTree());
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

thedon
Senior
Posts: 159
Joined: Sun May 26, 2013 2:00 pm
Has thanked: 3 times
Been thanked: 2 times

Re: How do I show my entire category list even if 0 post in

Post by thedon » Tue Dec 06, 2016 7:52 pm

Nope tried it but still the same

http://imgur.com/a/M3RXQ

If you cannot do it take out Select a Category box and extend the search box

Locked