You are here:  » Amazon API Half Data Half Missing


Amazon API Half Data Half Missing

Submitted by twdesigns on Sun, 2013-01-06 15:30 in

Hey David,

With the amazon_api up and running I see a lot of products being imported that say $0 for price or sometimes there are 4 products imported but 3 of the 4 table cells are completely blank. It depends on the product being viewed that produces this result. I fear this is an Amazon issue but do you know of anyway to filter out products pulled in that are missing data such as Name and Price?

Thanks,
Tommy

Submitted by support on Mon, 2013-01-07 09:51

Hi Tommy,

Try adding the same zero price check as the standalone version; in pto_api_amazon.php look for the following code at line 121:

$row->minPrice = pto_common_decimalise($item["OFFERSUMMARY/LOWESTNEWPRICE/FORMATTEDPRICE"]);

...and REPLACE with:

$row->minPrice = pto_common_decimalise($item["OFFERSUMMARY/LOWESTNEWPRICE/FORMATTEDPRICE"]);
if ($row->minPrice==0.00) return;

Cheers,
David.
--
PriceTapestry.com

Submitted by twdesigns on Wed, 2013-01-09 21:14

As always... Perfect!

Thank you David.