Remove products from bestsellers (which we no longer sell)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 yıl önce
Hi everyone,

Hopefully the title is self-explanatory.  We have a number of products which we have stopped selling on the store.
I have unpublished them (with the tickbox) but they are still appearing in the bestsellers list.

Is there a simple way to remove them please?

Thanks in advance for your help.

Regards,

John
7 yıl önce
I was going to suggest the unpublishing but then I read that you'd tried that.

Looking at the source code it would appear as if you need to change the showHidden parameter to false.

Search for instances of _orderReportService.BestSellersReport in OrderController and make changes there.

The value is hard coded to true in that controller.

Hope that helps.
7 yıl önce
That does seem to be a bit of a 'bug', because the default value for the showHidden parameter is true (which makes sense for Admin pages), yet the admin controllers that use it set it explicitly, but in the public store controller where it's used it's not specified (so the default true applies).
(Andrei?)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.