Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • David 29 posts 110 karma points
    Jun 25, 2013 @ 21:59
    David
    0

    Category Filtering

    Hi,

    I'd like to create a page that shows a list of products grouped by category.  

    The shopper decides which categories/products are displayed on the page via a check box collection, where each checkbox represents a category.  

    Basically a single page displaying multiple categories, grouped by category, controlled by the end user via checkboxes.

    Can you point me in the right direction?

    Thanks.

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 26, 2013 @ 13:59
    Nickolaj Lundgreen
    0

    Hello David

    I would store the categoryIds the shopper select in a cookie/db table, and in the controller/razor you do a categories.Where(x=> shopperCategoryIdList.Contains(x.Id)).

    If you need some more help with the category picker page, or more details on fetching the right categories just ask :)

     

     

  • Kent 30 posts 54 karma points
    Jun 27, 2013 @ 05:25
    Kent
    0

    Here's how I've gotten all products in the selected categories. In my case the user can select multiple categories and then the products are shown together, not grouped. Not exactly what you're asking for, but hope it helps.

    http://pastebin.com/2jUpkRFr

  • David 29 posts 110 karma points
    Jul 02, 2013 @ 05:00
    David
    0

    Thank you both for your help.  I went with the cookie approach.

    Cheers,

    David.

Please Sign in or register to post replies

Write your reply to:

Draft