Active
Project:
Apachesolr Ubercart Integration
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2011 at 15:05 UTC
Updated:
20 Aug 2013 at 17:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
open social commentedDid you find any solution? Also interested in this.
Comment #2
smd_ksu commentedNope, still holding out hope someone will post on how to do this.
Comment #3
open social commentedWe ended up doing it in the theme override theme_apachesolr_facet_list
It is probably not the right way to go, but it will work for now.. good luck :-)
Put this code in template.php and replace mytemplate with your template machine name.
Comment #4
nick_vhSorry guys for the low support on this one! Im mostly focussed on the drupal 7 version of Apachesolr right now
Comment #5
willdashwood commentedSorry to dig up this old thread. I was after the same thing but I decided to just do a quick and dirty hack of apachesolr_ubercart_price_facet_block. I wonder if it's worth considering making this an option in the module so people can choose between ordering by hit count or by cost.
I'm not very clued up on git or diff but I think I've made a patch against apachesolr_ubercart 6.x-1.x-dev if anyone is interested. I've just added the line:
$sortpre = $from_price;and changed
ksort($items, SORT_STRING);to:
ksort($items, SORT_NUMERIC);