Submitted by ajmboy on Thu, 2012-04-05 13:53 in Price Tapestry
I'm using the amazon.php addon in products and search pages. Just wondering if this can be added to the category pages, or custom category pages I made in the admin panel.
With amazon.php included in search.php it should be called on category pages (as /category/CategoryName/ is re-written to search.php?q=category:CategoryName:) but the format of the query may be limiting the chance of results.
To correct this, in search.php where you have added:
Hi,
With amazon.php included in search.php it should be called on category pages (as /category/CategoryName/ is re-written to search.php?q=category:CategoryName:) but the format of the query may be limiting the chance of results.
To correct this, in search.php where you have added:
require("amazon.php");
...REPLACE this with:
$q = str_replace(array("merchant","category","brand",":"),"",$q);
require("amazon.php");
Hope this helps!
Cheers,
David.
--
PriceTapestry.com