Hi ginerjim thanks for your reply. I have attached the api call below. (eBay Finding api) The api does the searching and then display its findings into a jquery carousel. I know i need to add a $_REQUEST with the variable itemID or similar, its what to next im unsure about.
I hope this makes better sense. I just don't want the item i'm currently viewing to be included in the similar items carousel.
thanks again for your time.
<?php
error_reporting(E_ALL); // Turn on all errors, warnings and notices for easier debugging
// API request variables
$endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1';
$version = '1.12.0';
$appid = ''; // Replace with your own AppID
$globalid = 'EBAY-GB';
$query = '';
$safequery = urlencode($query);
// Construct the findItemsByKeywords HTTP GET call
$apicall = "$endpoint?";
$apicall .= "OPERATION-NAME=findItemsIneBayStores";
$apicall .= "&SERVICE-VERSION=$version";
$apicall .= "&SECURITY-APPNAME=$appid";
$apicall .= "&GLOBAL-ID=$globalid";
$apicall .= "&keywords=$safequery"
$apicall .= "&paginationInput.entriesPerPage=18";
$apicall .= "&keywords=";
// Load the call and capture the document returned by eBay API
$resp = simplexml_load_file($apicall);
// Check to see if the request was successful, else print an error
if ($resp->ack == "Success" ) {
$results = '';
// If the response was loaded, parse it and build links
foreach($resp->searchResult->item as $item) {
if ($item->pictureURLLarge) {
$pic = $item->pictureURLLarge;
}
else {
$picsml = $item->galleryURL;
}
$pic = $item->pictureURLLarge;
$picsml = $item->galleryURL;
$link = $item->viewItemURL;
$title = $item->title;
$price = $item->sellingStatus->convertedCurrentPrice;
// For each SearchResultItem node, build a link and append it to $results
$results .= "<div class='output'></div>" // include all elements you want to display
echo $results;
?>