You are here:  » showing results for brands / categories / merchants

Support Forum



showing results for brands / categories / merchants

Submitted by Paul1107 on Tue, 2009-03-24 10:54 in

Hi David,

thanks for your help last week regarding the adapted beta version of PT for wordpress/joomla.

If I wanted to have a page called "shop by brand" to show the brands as per the PT home/brands/ page

What calling do I use with the $_GET["q"] query?

I also have $_GET["sort"] = "priceDesc";, but the page is not sorting by decreasing price, any ideas?

You help would be appreciated

cheers

Paul

Submitted by support on Tue, 2009-03-24 11:12

Hi Paul,

To link to the brand / category / merchant indexes you need to preset $_GET["r"] instead of $_GET["q"], for example:

  $_GET["r"] = "brand";

The latest version of the plugin doesn't yet read the sort parameter, but you can add this easily. In external.php you will find the following code on line 264:

$sort = "relevance";

..REPLACE this with:

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

Cheers,
David.

Submitted by atman on Thu, 2009-03-26 01:30

hi

how do i get the "beta version of PT for wordpress/joomla." ?
david, if you need beta testers. I can be a qualified beta tester :)

Submitted by support on Thu, 2009-03-26 08:39

Hi atman,

The easiest way is if you could first implement either searchExternal.php or pricesExternal.php from the following thread:

http://www.pricetapestry.com/node/2289

Then if you could email me the "calling code" that you derived for those files (that's the PHP that you inserted into your WordPress / Joomla page) i'll email you back the full version with the required calling code for that one...

Cheers,
David.