Join Free
  • Inbox
    + Reply to Thread
    Page 1 of 2 1 2 LastLast
    Results 1 to 10 of 16

    Hybrid View

    1. #1

      Any interest in a free search script?

      I put this together and wanted to see if anyone would be interested in using it on their own site: http://www.highaltitudeimports.com/s...=soccer+cleats

      I'm trying to make it as simple to use as possible. There are config vars at the top of the script that allow you to set basic things like api key, limits for the number of results, userid for the performance ads, etc.

      Anything else you guys would like to see before I package it up? This is meant to be simple (that's why I built it lol). It makes use of the new iterator, facets, and a number of other things that my last script was lacking.

    2. #2
      I would love to see some implementation of geotargeting and trend data results. For some reason I've had trouble getting that to work with the boilerplate code in the API docs.

    3. #3
      I should be able to do something with that. I'll play around and post what I come up with. I can see where trends are more difficult. Let's say you want to display the top sellers for a specific query. You have to query trends which gives you the product id's, you then have to loop through those and pull them from the standard api via the filters. We have to do that since a product that has a commission may no longer be offered in the catalog. It may have been a special that only lasted a set period of time at a specific merchant for example.

    4. #4
      The example in the docs for trends is missing the required date range parameter, so that's probably why you couldn't get it to work.

      PHP Code:
      $prosperentApi = new Prosperent_Api(array( 
              
      'commissionDateRange' => '20120601,20120628'
          
      )); 

          
      //fetch the result 
          
      $prosperentApi->fetchTrends(); 

          
      //iterate through the facets response  
          
      $i=0
          foreach (
      $prosperentApi->getFacets('productId') as $productId
          { 
      We will get that updated. I now have trends working on the demo search site. You basically have to pull from trends, grab the product id's and send those as a query to the standard api. Right now I have it looping through the product id's. Before I give the script out i'm going to update it so it passes the productId's in an array and does a single query.

    5. #5
      eagerly waiting for it.

    6. #6
      I "think" i'm done enough to package it up. It was actually nice getting to work with the api as a non programmer. I got to see where we need to update things in the documentation.

      I ended up adding trend data to the search results, adding price sorting, and finishing up the implementation of facets. That should give anyone that uses the script enough examples to dig in and start modding things to do whatever else they want.

    7. #7
      Wow "Brian the Programmer"

    8. #8
      Quote Originally Posted by monalisa View Post
      Wow "Brian the Programmer"
      It's shocking to me too.

    9. #9
      Is there a new DL with the missing Prosperent_Api_new.php?

      thanks
      alex

    10. #10
      I figured I would forget something in the package. It's just the regular api class that you can download. I named mine new because my development site was on a domain that was running another version of the api class for an older script. Anyhow, you can either change the name in the files to Prosperent_Api.php or change the name of the downloaded class to _new

      Sorry about that.

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts