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.
This works but doesn't remove the product from the MerchelloController and the total count on the overview page.
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.
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).
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.
This works but doesn't remove the product from the
MerchelloController
and the total count on the overview page.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.
Have you updated the views or controllers to filter out the products based on "Hide from overview" extended property?
Thanks, Jason
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 theHideFromOverview
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).
is working on a reply...