Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4215
Latest: Proxitane
New This Month: 6
New This Week: 1
New Today: 1
Stats
Total Posts: 42796
Total Topics: 7456
Most Online Today: 34
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 54
Total: 54

Author Topic: How to display Items from Subcategories within Parent Category?  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

Offline Nicole

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 88
    • View Profile
How to display Items from Subcategories within Parent Category?
« on: December 01, 2020, 01:32:54 am »
I have one very important qiestions concering classifieds (but same issue applies for downloads, links directory & store as well)

As the scripts are set by default, they will allow to have a parent category and within it subcategories.

Hopwever if we go to the display of a parent category it will only list items whoch have been directly placed into this PARENT category but will NOT display the items contained in the sub categories of this parent category.

I feel the better approach - like eBay does it as well - is to list / show ALL items when going to a parent category.

To give an example. Let's say we have the Parent Category

- Car Parts

Its Sub Categories are for example

 - Breaks
 - Tiers
 - Seat

Now going to the Parent Category "Car Parts" ought to show all items contained wihin:

- Car Parts (Parent Category) AND its Subcategories Breaks, Tiers, Seats

NOT Just the ones whoch had been directly placed into the Parent Category

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: How to display Items from Subcategories within Parent Category?
« Reply #1 on: December 01, 2020, 12:07:27 pm »
I get the idea using the categories as kind of a filter option might work for the Classified and the Store mod.  I modeled the category system based on SMF's post/topic model where it is only visible inside the parent category. The store  mod has the option to put a product in multiple categories.


The changes required to make this happen though are hard with the current setup and would require major changes. It gets difficult going to sub sub categories.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Nicole

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 88
    • View Profile
Re: How to display Items from Subcategories within Parent Category?
« Reply #2 on: December 02, 2020, 05:01:42 am »
I see. Thank you. That is a pitty.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5139 Views
Last post October 28, 2006, 08:20:24 am
by SMFHacks
1 Replies
3495 Views
Last post November 15, 2008, 02:04:17 pm
by SMFHacks
1 Replies
2801 Views
Last post May 01, 2009, 06:48:17 pm
by SMFHacks
1 Replies
4588 Views
Last post March 29, 2010, 02:13:54 pm
by SMFHacks
1 Replies
2723 Views
Last post July 22, 2015, 10:58:45 am
by SMFHacks

+- Recent Topics

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Permissions query by davejo
March 26, 2023, 04:43:48 am

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

Powered by EzPortal