You are here:  » Brand Arrange by number of Product

Support Forum



Brand Arrange by number of Product

Submitted by technoarenasol on Mon, 2012-10-15 13:01 in

Hi

How to arrange by brand according to number of product in sidebar filter

By brand :

Samsung(60)
Nokia (35)
Sony(20)
LG(2)

Submitted by support on Mon, 2012-10-15 17:58

Hi,

I know you're creating your filters in a custom template file, it's straight forward but does require quite a bit of code adjustment (in order to build the list in memory and then sort before display) so if you could email me the latest version of your file containing the sidebar filter code I'll add that for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Tue, 2012-10-30 13:22

technoarenasol

Hi David I added code which sidebar.php file send in email but one problem : not count number product but count number of seller means if one product available on 4 merchants so count 4 times ....

Submitted by support on Wed, 2012-10-31 09:01

Hi,

I've forwarded a version with GROUP BY added to the count SQL which should do the trick...

Cheers,
David.
--
PriceTapestry.com