WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. JungleTech
    Member
    Posted 5 months 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.

    https://wordpress.org/plugins/wordpress-ecommerce/

  2. David
    WPMU DEV Support Staff
    Posted 5 months 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:
    http://premium.wpmudev.org/blog/the-easy-guide-to-theming-marketpress/

    Hope that helps!

    Cheers,
    Davd

  3. JungleTech
    Member
    Posted 5 months ago #

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

    Thanks

  4. David
    WPMU DEV Support Staff
    Posted 5 months 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. :)

    Cheers,
    David

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.