Copied to clipboard

Flag this post as spam?

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


  • Wesley 7 posts 77 karma points
    Mar 20, 2023 @ 14:39
    Wesley
    0

    Hide product from product overview and search results

    We need to hide some products from the overview, search results, related product and so on. Sometimes the client only wants the product to be visible via a direct link. We've made a checkbox add the 'Extended content' to hide it from the overview.

    enter image description here

    This works but doesn't remove the product from the MerchelloController and the total count on the overview page.

    enter image description here

    The count still adds the products that are 'true' (3 on the screenshot above). I've tried to remove them but it doesn't work. Does anybody have an idea how(or where) to do this? Or has an alternative way that works.

  • Jason Prothero 422 posts 1243 karma points c-trib
    Mar 21, 2023 @ 19:07
    Jason Prothero
    0

    Have you updated the views or controllers to filter out the products based on "Hide from overview" extended property?

    Thanks, Jason

  • Wesley 7 posts 77 karma points
    Mar 22, 2023 @ 08:58
    Wesley
    0

    We're just doing a check now on the Partial View whether the boolean is true or false. That isn't the solution because it doesn't work as it should be now and there's also a 'Total count' and a count for each filter which are all mismatching now.

    Unfortunately we've choosen for Merchello a couple of years ago and the colleague who has done this complete project doesn't work for us anymore and we don't have any other Merchello project.

    So it's a little bit tricky for now and the Controllers or ViewModels we tried to remove the products from are giving a error when we want to do so.

    I was hoping there's a 'standard' MerchelloController or something like that where all the products are collected and we can do a check and remove the ones which have the HideFromOverview true on the Extended Content tab.

    If there's another solution for the clients wish which I'm missing that's also good offcourse!

    The question was: We want to remove products from the different overviews but the need to be indexed (SEO) and approachable by a direct link (Available for purchase doesn't do this unfornately).

Please Sign in or register to post replies

Write your reply to:

Draft