I've created drop-in replacements of the search results (html/searchresults.php) and price comparison table (html/prices.php) HTML modules which includes tabs for Amazon and / or eBay results. Using "onClick" to detect user activation of each tab for the first time, the API results are then loaded on demand and displayed in the same format as datafeed results.
Default view, normal price comparison table of datafeed results:
...and with Amazon tab selected:
Download (Responsive HTML / Responsive HTML Plus Templates)
Download (Classic Template)
Amazon / eBay tabs are enabled by the presence of html/amazon.php and html/ebay.php respectively.
- If you wish to include the Amazon tabs, edit html/amazon.php and enter your Amazon Associates AWS API credentials, associate tag and the required host and region for your locale e.g.
$amazonAWSAccessKeyId = "YOUR_ACCESS_KEY_ID";
$amazonSecretAccessKey = "YOUR_SECRET_ACCESS_KEY";
$amazonAssociateTag = "YOUR_ASSOCIATE_TAG";
$amazonHost = "webservices.amazon.co.uk";
$amazonRegion = "eu-west-1";
- If you wish to include the eBay tabs, edit html/ebay.php and enter your eBay Developers Program App ID, Global ID, Network ID (see below) and tracking ID associated with the network e.g.
$ebayAppId = "YOUR_APP_ID";
$ebayGlobalId = "YOUR_GLOBAL_ID";
$ebayNetworkId = "YOUR_NETWORK_ID";
$ebayTrackingId = "YOUR_TRACKING_ID";
Upload the modified and required replacement files to your Price Tapestry installation.
- Amazon / eBay logos are picked up exactly as per datafeed merchant logos. To enable logos, upload the image files required as logos/Amazon.img and logos/eBay.img respectively (assuming default $config_logoExtension of ".img").
- You should add a Disallow: entry for /html/ to your site's robots.txt file