You are here:  » Show price comparison table in listing results and Amazon


Show price comparison table in listing results and Amazon

Submitted by allanch on Thu, 2013-01-03 12:04 in

Happy New Year David!

I hope you're well and had nice festive break. I'm updating my website and as its a niche one I thought I'd do away with products.php as described in node/4241. I tried the code suggested and it works perfectly but I was wondering if its possible to have Amazon prices included in this and how I can achieve this? Thanks.

Allan

Submitted by support on Thu, 2013-01-03 12:35

Hi Allan, HNY to you too!

amazon.php can be included in search.php as well as products.php - in your new version where you have:

  require("html/searchresults.php");

...REPLACE with:

  require("html/searchresults.php");
  require("amazon.php");

Cheers,
David.
--
PriceTapestry.com

Submitted by allanch on Thu, 2013-01-03 22:07

Hi David,

Thanks for getting back to me. I get this error message when I add that:

Fatal error: Cannot redeclare amazon_substr() (previously declared in /home/allan/public_html/amazonProduct.php:8) in /home/allan/public_html/amazonProduct.php on line 20

Line 8 is function amazon_substr($text,$length,$append="")

Do you know how I can resolve this? Thanks

Submitted by support on Fri, 2013-01-04 08:45

Hi Allan,

Ah, didn't realise you were using the product version - no problem, please could you email me your products.php, search.php and your current amazon files (amazon.php and amazonProduct.php) and I'll modify so that your amazonProduct.php method can be used on the search results page for your niche site...

Cheers,
David.
--
PriceTapestry.com