Facebook  Twitter 




+- User Information

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

+- Forum Stats

Total Members: 11845
Latest: SamoanOnion
New This Month: 6
New This Week: 0
New Today: 0
Total Posts: 42473
Total Topics: 7406
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

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

0 Members and 1 Guest are viewing this topic.

Offline Nicole

  • Jr. Member
  • **
  • Posts: 77
    • 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: 16109
    • 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

  • Jr. Member
  • **
  • Posts: 77
    • 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
Last post October 28, 2006, 08:20:24 am
by SMFHacks
1 Replies
Last post November 15, 2008, 02:04:17 pm
by SMFHacks
1 Replies
Last post May 01, 2009, 06:48:17 pm
by SMFHacks
1 Replies
Last post March 29, 2010, 02:13:54 pm
by SMFHacks
1 Replies
Last post July 22, 2015, 10:58:45 am
by SMFHacks

+- Recent Topics

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

[Feature Request] Admin Sales Alert by Shades
August 25, 2022, 06:41:00 pm

Portal Block by SMFHacks
August 23, 2022, 12:42:22 pm

Question about undoing a rating by SMFHacks
August 22, 2022, 04:31:50 pm

Powered by EzPortal