+ Reply to Thread
Results 1 to 10 of 16
Hybrid View
-
06-26-2012 03:33 PM #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.
-
06-26-2012 04:27 PM #2Member
- Join Date
- Apr 2011
- Posts
- 67
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.
-
06-26-2012 04:38 PM #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.
-
06-29-2012 10:22 AM #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.
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.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)
{
-
07-02-2012 09:08 AM #5Senior Member
- Join Date
- Apr 2011
- Posts
- 159
eagerly waiting for it.
-
07-02-2012 12:56 PM #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.
-
07-02-2012 10:02 PM #7Senior Member
- Join Date
- Apr 2011
- Posts
- 159
Wow "Brian the Programmer"
-
07-03-2012 07:45 AM #8
-
07-03-2012 08:39 AM #9Junior Member
- Join Date
- May 2011
- Posts
- 12
Is there a new DL with the missing Prosperent_Api_new.php?
thanks
alex
-
07-03-2012 08:42 AM #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.

Reply With Quote
