MarketPress - WordPress eCommerce
[resolved] Category Widget (4 posts)

  1. JungleTech
    Posted 2 years ago #

    Is there any way to have the widget only show main categories until you click one then show all the sub categories under it? So:

    Start at:
    Category A
    Category B

    And show:
    Category A
    Sub A1
    Sub A2
    Category B

    When you click on category A.

    This does not need to be ajax. It can reload the page showing you all products in A, but allow you to narrow down your search results.


  2. David
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi @JungleTech,

    Thanks for your question.

    It would't work that way by default with the categories directly, but as a workaround, you could create regular Pages representing categories then use the category shortcodes to display the

    Page Category 1
    [mp_list_products category="category1"]

    Page Category 2
    [mp_list_products category="category2"]

    Or if you're comfortable digging into code, you could use the following to see how to create custom template files for custom category listings:

    Hope that helps!


  3. JungleTech
    Posted 2 years ago #

    I managed to find a plugin that does exactly what is needed, and supports custom taxonomy. That plugin is Collapsing Categories.


  4. David
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi @JungleTech,

    Awesome! Sorry, I just didn't even think to mention other plugin possibilities! But I also sorta forgot about that plugin (I've used it in the past).

    Glad you found that and thanks for posting it. :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MarketPress - WordPress eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.