You are here:  » Displaying Search Results - Highest To Lowest

Support Forum



Displaying Search Results - Highest To Lowest

Submitted by brentmitchell on Mon, 2011-09-12 19:13 in

Hi David,

I'm looking to make a change to how my products are displaying in the search results. I'd like to have the highest price products showing first. I know this is probably and easy fix, but don't know if changes need to be made on PT, as well as in the WP plugin. Please let me know...thanks!

{link saved}

Submitted by support on Tue, 2011-09-13 05:55

Hello Brent,

For the plugin, it's line 342 of pto.php where you'll find the following code:

$pto_sort = (isset($pto_sort)?$pto_sort:"relevance");

To default to price high-low, REPLACE the above line with:

$pto_sort = (isset($pto_sort)?$pto_sort:"priceDesc");

For a standalone Price Tapestry installation, it's line 10 of search.php where you'll find this code:

  $sort = (isset($_GET["sort"])?$_GET["sort"]:"relevance");

...REPLACE with:

  $sort = (isset($_GET["sort"])?$_GET["sort"]:"priceDesc");

Cheers,
David.
--
PriceTapestry.com

Submitted by brentmitchell on Tue, 2011-09-13 17:16

Thanks David!!