Camera Top Sellers

    'Featured items', 'salesrank'=>'Bestselling', 'launch-date'=>'Newest arrivals'); $modes='Photo'; //сортировка будет проходить по pmrank $sort_option='salesrank'; //начиная с 1 ой стр -цы при условии что другие не заданы error_reporting(E_ALL ^ E_NOTICE); include ("./config.inc"); include ("./lib/Amazon.php"); $brand = $_GET['brand']; $keywords = $brand." Digital Camera"; //echo "!!@!@!@!@!!!@@@!@!@!@".$keywords; $added = 0; $page=1; if (isset($_GET['count'])) $m_cc=$_GET['count']; else $m_cc=10; while($added < $m_cc) { //делаем запрос на вывод всего списка предлагаемых товаров $amazon = new Services_Amazon($token,$associd); $options = array(); $options = array(); $options['Keywords'] = $keywords; $options['Sort'] = $sort_option; $options['ItemPage'] = $page; $options['ResponseGroup'] = 'ItemAttributes,Images,OfferFull';//VariationSummary,VariationMinimum,Variations $result = $amazon->ItemSearch($modes, $options); //var_dump($result); // if (PEAR::isError($result)) { // report_error($result->message); // echo "NO MATCHES"; // } //определяем кол-во страниц и элементов $totalpages=$result["TotalPages"]; $currentpage=$result["Request"]["ItemSearchRequest"]["ItemPage"]; //echo 'total result:'.$result["TotalResults"].'   total pages:'.$result["TotalPages"].''.'
    '; //здесь выводить список сортировки //ПРАВОЕ МЕНЮ*************************** //надо проверить каждый товар на наличие в нём Offersa for ($i=0;$i<$m_cc;$i++) { //$r = rand(9,0); $result_item=$result['Item'][$i]; $asin_item=$result['Item'][$i]["ASIN"]; $title=$result_item["ItemAttributes"]["Title"]; //кртинку определяем $url_medium_image=$result_item["MediumImage"]["URL"]; if ($url_medium_image=='') { $url_medium_image='http://www.timebooth.com/watchstore/images/no-img-sm.gif'; } if ($result['Item'][$r]["Offers"]["TotalOffers"]>1){ $offer=$result['Item'][$r]["Offers"]["Offer"][0]; }else{ $offer=$result['Item'][$r]["Offers"]["Offer"]; } if (!isset($offer["Merchant"])){ $sellerId=$offer["Seller"]["SellerId"]; $seller_nick=$offer["Seller"]["Nickname"]; $seller_state=$offer["Seller"]["Location"]["State"]; }else{ $merchantId=$offer["Merchant"]["MerchantId"]; $merchan_name=$offer["Merchant"]["Name"]; } $offerlistingID=$offer["OfferListing"]["OfferListingId"]; $price=$offer["OfferListing"]["Price"]["FormattedPrice"]; $availability=$offer["OfferListing"]["Availability"]; if (isset($offer["OfferListing"]["SalePrice"])){ $price=$offer["OfferListing"]["SalePrice"]["FormattedPrice"]; } // if ($price==''){$price='unknown';} if($result['Item'][$i]['ItemAttributes']['ProductTypeName'] == 'CAMERA_DIGITAL') { $v_url=strtok($title, " "); echo '
  • '.$title.'
    '."\n"; $added++; } } $page++; } //ПРАВОЕ МЕНЮ*************************** if ($currentpage-5<=0){$beginpage=1;}else{$beginpage=$currentpage-5;} if ($beginpage+10>=$totalpages){$endpage=$totalpages;}else{$endpage=$beginpage+10;} $raz=$endpage-$beginpage; // echo '

    Processing Time : ' . $amazon->getProcessingTime() . 'sec

    '; ?>

Recent Forum Discussions

Forum Name: Offtopic Talk
user: elaine202 03.14.2013
Topic Name:
Transfer Photos and Videos Wir...

Forum Name: Past, Current & Future Contests
user: AgoraGallery 01.29.2013
Topic Name:
The 28th Chelsea International...

Forum Name: Share Photos
user: peterr89 10.12.2012
Topic Name:
The lizard

Digital Cameras & Lenses

RSS

Read more camera posts


Printlion.com offers printing services
for various projects at an affordable price.

Photo Tips & Tutorials

RSS
  • Photographer Interview: Nehaseth28
    Nehaseth28, the winner of several contests, is answering our questions.1. Who are you? Please, give us brief background information. hi, I am Neha Se ...
  • 10 Tips How To Shoot Architecture
    When shooting architecture, the photographer deals with a constant object. Unlike other genres, one cannot rely on the unique moment here - the buil ...
  • Photographer Interview: skittle11
    Skittle11, a contest winner, is answering our questions.1. Who are you? Please give brief background information. I am a small town girl who lives in ...

Read more tutorials


Photographer Interviews

RSS
    Photographer Interview: PunkRose
    PunkRose, a contest winner, is answering our questions.1. Who are you? Please give brief background information. My name is Lia Caverly ...

    Interviewing photographer: Natureaddict
    1. Who are you? Please give a brief background information. My name is Barb. We live in a small town called Grand Valley, Pa. I was born and raised ...

    Photographer Interview: Nana17
    1. Who are you? Please give a brief background information. My name is Bev. I live in a little place in pa. I am a 61 year old stay at home grand moth ...

Read more interviews

Login

Username:

 Password:

Loading

Hall Of Fame



Place-1

Recent Contest Winners

CONTEST: Easter/Passover

Latest Photos Added to Contests

JOIN OPEN CONTESTS:


Kranjska gora, Slovenia

Cronado Islands - Rosarito Beach, BCN. Mx. - 2/4/12

Rate These Pictures

No pictures for voting.

Top Advanced Members

Top Amateur Members

Sign up to our newsletter

If you’d like to stay updated with our web site news, please complete the form below and we’ll send you an e-mail every now and again:

Enter your Email