PDA

View Full Version : Wordpress Plugin for SW API


currentstyle
13-05-09, 13:27
Well, you see, i've written it, and it works well, but, its running here

http://www.thefashionline.co.uk

as well as on a few other wordpress installations.

It works like any other plugin, ie. you ftp it, install it and activate it, then you have this function in any of your posts or pages

[awin id="0" query="cannondale" no="10"]

would return 10 products with the keyword cannondale in all categories.

[awin id="194" query="guppy+love" no="10"]

would return 10 pairs of womens shoes with the keyword guppy love.

Kinda obvious really

http://www.thefashionline.co.uk/05/13/womens-guppy-love-footwear.html

PM me for more details.

currentstyle
14-05-09, 19:13
Been slogging away at it all day, and now there are some pretty big changes in it (anyone who already has it will receive the upgrade tomorrow morning on schedule), I'll post the readme.txt file here

Installation:

Upload the affiliatewindow folder to your /plugin directory (usually /wp-content/plugins).

Go to your dashboard and activate the Affiliate Window ProductServe Service plugin.

In your posts or pages, include the following wherever you want to display products

[awin id="139" query="adidas" no="20" sort="hi" merchid="1857" awstart="1" price="40_60"]

a) id is the awin category id, a list of which are in the Categories datafeed found here:

http://www.panfashion.co.uk/05/list-of-affiliate-window-categories-and-ids/

b) query is self explanatory and should have no whitespace, use a + instead of a space.

c) no is the number of products you want to return

d) sort is also self explanatory, here are the possible sort options.

Sort variables:

az - Alphabetical increasing
za - Alphabetical decreasing
hi - By price, decreasing
lo - By price, increasing
popularity - By popularity, decreasing
relevancy – More relevant products to the specified query will appear first

e) merchid is the specific merchant id

f) awstart is the number that you want your results to start from (eg, you could have two pages for the kona shred bike, [awin id="0" query="kona+shred" no="10" sort="hi" awstart="1"] on one page, then [awin id="0" query="kona+shred" no="10" sort="hi" awstart="11"] on the next page.

g) price is a range, eg. between £50 and £100 is written like this 50_100


The only required variable is query, the others default to:
id = 0
no = 10
sort = popularity
merchid = none
awstart = 1
price = 0_100000

Feel free to PM me regarding this plugin :)

The test site for this plugin is http://www.panfashion.co.uk

currentstyle
18-05-09, 20:57
There's now a free (click split) version, PM me for more info.