You are here:  » Amazon API into Category Pages?

Support Forum



Amazon API into Category Pages?

Submitted by ajmboy on Thu, 2012-04-05 13:53 in

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.

Submitted by support on Thu, 2012-04-05 14:16

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

Submitted by ajmboy on Wed, 2012-04-11 11:13

Perfect, thanks!