Pan Fashion Home > The Plugin > The Linkshare Merchandiser Wordpress Plugin

The Linkshare Merchandiser Wordpress Plugin


It’s finally finished (as much as any piece of code can be finished).

The Linkshare Merchandiser Wordpress Plugin.

This plugin is being offered as a free tool for your wordpress installation (there is a link placed in the footer of your wordpress, which can be removed for a small payment). The link in the footer MUST NOT be removed without agreement with me or a representative of panfashion.co.uk

How does it work?

Simply is the answer, you download the zip file, unzip the contents and upload the linkshareplugin folder to your wordpress plugins folder.

Then, you activate it in your plugins area on your admin dashboard, and set up the parameters in your settings admin area.

Linkshare Merchandiser WP Plugin Admin Panel

Linkshare Merchandiser WP Plugin Admin Panel

Then you simply add code like this [ ls lsquery="maternity jeans" lsmid="35208" lsno="40" lssort="asc" pnum="1"]

(which yields this page)

The breakdown is like this:

  • lsquery = the keyword/s you want to search for (this is required)
  • lsmid = the Linkshare ID of the specific merchant whose products you want to show (this defaults to all your merchandiser merchants)
  • lsno = the number of results (maximum 100 per page)
  • lssort = the sort order on the price field (asc low to high or dsc high to low) (defaults to asc)
  • pnum = the page number (so, to get  a series of pages for a query you would use something like this within each query -  lsno=”40″  pnum=”1″ lsno=”40″  pnum=”2″ (pnum defaults to 1)

What do I need to run this?

A wordpress blog (obviously) above version 2.6

A Merchandiser (or webservices) token from Linkshare found here (new window)

Thats it!

This plugin is being updated almost weekly, and will be sent to you every time it gets upgraded.

The Download

Click here to download the Linkshare Merchandiser Wordpress Plugin

  1. #1 by Amber | DiscountMario at August 3rd, 2009

    I want to buy this plugin but I have some questions.

    I have a linkshare token but from where did I get keywords and merchant ID’s? I cant see them in Linkshare panel.

    Also my site has too many contents, does this plugin generates new pages/ posts or i have to install a separate blog for it.

    Thanks for your attention.

    Amber

  2. #2 by admin at August 3rd, 2009

    Amber | DiscountMario :

    I want to buy this plugin but I have some questions.

    Not sure if you’ve noticed, but the plugin is free, so buying it would be nigh on impossible, keywords and merchant id’s are found in your merchandiser section of linkshare.

    You can use this plugin on a blog that already has content, no need to install a new blog.

    Regards

    Tony

  3. #3 by r00tman at August 13th, 2009

    Hi there, where exactly do I add the code?

  4. #4 by Josh at August 15th, 2009

    How do I change the currency?

  5. #5 by admin at August 15th, 2009

    Josh, you will have to change the

    £ to 
    $

    in the accompanying xsl files

  6. #6 by admin at August 15th, 2009

    You add the code in a post or page in html view

  7. #7 by Amen at September 3rd, 2009

    The file in this link: http://www.panfashion.co.uk/linkshareplugin.zip does not seem to be valid. It is giving me an error. Would you mind to resubmit.

    Cheers

  8. #8 by admin at September 3rd, 2009

    Hi, the zip file is fine when I download it, perhaps the error is at your end?

    Alternatively, you can download it from here http://www.wpaffiliateplugins.com/index.php/free-affiliate-plugin-downloads/

  9. #9 by Amen at September 4th, 2009

    Thanks for your prompt response Admin. I managed to download from the link you sent to me. It is a pretty nice tool. Thanks for your time. However, currently my results are coming back with the price in British Pound. Is there a way I can set it to show the $ sign?

    Cheers

  10. #10 by admin at September 4th, 2009

    Sure, check the 4 xsl files in the plugin folder and make the adjustments as necesarry, in each file you will see the header and in there is the definition for the pound sign and the dollar sign, then further down the file you will find the pound sign as the currency, change it to the dollar definition. Hopefully this makes sense, if not, email me at admin@currentstyle.co.uk and I will send you the modified xsl files

  11. #11 by Amen at September 5th, 2009

    Really appreciate your help and this plugin. I made it work by making the changes you suggested. I just added the line below in the header of each file since it wasn’t there. Thanks again.

    Cheers

  12. #12 by Scott at November 8th, 2009

    Why are there two hard coded links within the plugin code that go to:
    http://www.mama-la-mode.com/downloads/Image/product/large
    and
    http://www.mama-la-mode.com/downloads/Image/product/small

    ?

    Am I supposed to change that manually for my own site?

  13. #13 by admin at November 16th, 2009

    If you look closely, they are simply the replacement of images from mama-la-mode, no need to change anything.

  14. #14 by KJH at December 2nd, 2009

    Hi – jic you didn’t know, but your example page is blank.

    Is that by design? Perhaps the plugin can’t pull back any data?
    Cheers!

  15. #15 by admin at December 6th, 2009

    Thanks for the heads up, my host are currently doing something stupid with their firewall, so, I guess I’ll wait for them to take their fingers out of their arses :)

  16. #16 by Michael Schurmann at December 30th, 2009

    Help.
    This is the line I placed into my post:
    [ls lsquery="Dog Collar Bandana" lsmid="13565" lsno="40" lssort="asc" pnum="1"]

    And all that happens is that this line shows on my blog.
    I am using WP2.9

    I also tried and placed your line
    [ ls lsquery="maternity jeans" lsmid="35208" lsno="40" lssort="asc" pnum="1"] and still no results.

    What am I doing wrong?

    Michael

  17. #17 by Michael Schurmann at December 30th, 2009

    I did find the problem. It is in the way the file is downloaded in seperate pieces. Anyway that is fixed and it works, thank you.
    However one suggestion or help maybe.
    is there any way that one can sort the page by item or description alphabetically.
    if you were to look at http://superbowlpartytheme.com/nfl-bandanas-for-pets.html you would see the value this would have when all prices are the same.
    thank you for a great plugin.
    Michael

  18. #18 by admin at December 30th, 2009

    Hi Michael, you can change the sort order if you are happy to delve into the plugin code:

    you will need to add this code block:

    $ls_sort= $attr['sf'];

    if ($ls_sort==”) {
    $ls_sort = ‘retailprice’;
    }

    Just after this:

    $ls_sort_option= $attr['lssort'];

    if ($ls_sort_option==”) {
    $ls_sort_option = ‘asc’;
    }

    Then change the request line to read as follows:

    $request = “http://feed.linksynergy.com/productsearch?token=”.$merchandisertoken.”&keyword=”.urlencode($lsquery).”&max=”.$lsno.”&pagenumber=”.$ls_pagenumber.”&sort=”.$ls_sort.”&sorttype=”.$ls_sort_option.$lsmerchant;

    Then change the next line after the request to this:

    $cache_filename = $ls_pagenumber.’-’.$ls_sort_option.’-’.$ls_sort.’-’.str_replace(‘&mid=’,”,$lsmerchant).’-’.$lsquery.’linkshare.xml’;

    You will then have a new parameter to use in your shortcode called sf the valid values are retailprice, productname, categoryname and mid (merchant ID), which, when used in conjunction with the lssort option will give you up and down sorting. (asc and dsc).

    I’ve just amended my code and produced this page using [ls lsquery="Bandana" lsno="40" lssort="asc" pnum="1" sf="productname"]

    Bandanas

    Tony

  19. #19 by Michael Schurmann at January 4th, 2010

    Greetings, once more into the breach.
    Is there a way to place more than one vendor on a single page or in a single post.
    I tried to write the code twice and place a in between, I also tried to place multiple vendor ID’s into the code, comma separated to no avail.
    if I have one vendor it renders perfect, anything else the display is scrambled.
    Why do I need this?
    Because like on Valentines day I have a page for flowers and I have more than one flower dealer, the same holds true for chocalates and fine lingerie.
    I guess I might just make everything to difficult?
    Michael

  20. #20 by admin at January 4th, 2010

    Michael, I’m not sure why it doesn’t work using 2 or more blocks per page for you.

    I’ve just created this page as a test:

    http://www.panfashion.co.uk/01/multi-test-for-michael/

    With two blocks of code, and it’s rendering fine for me.

    [ls lsquery="shoes" lsno="20" ]

    Page Two begins here
    [ls lsquery="shoes" lsno="20" pnum="2"]

    And, to make sure it works with multiple merchant IDs this page does the same:

    http://www.panfashion.co.uk/01/shoes-from-two-merchants-test/

    [ls lsmid="24448" lsquery="shoes" lsno="5" ]
    Page Two begins here
    [ls lsmid="35118" lsquery="shoes" lsno="5" ]

    Tony

  21. #21 by Michael Schurmann at January 8th, 2010

    these three shops worked perfectly and now they are gone. any idea?
    http://superbowlpartytheme.com/nfl-bandanas-for-pets.html
    [ls lsquery="NFL dog collar bandana" lsmid="13565" lsno="40"]

    http://superbowlpartytheme.com/nfl-jersey-for-pets.html
    [ls lsquery="NFL Pet Jersey" lsmid="13565" lsno="40"]

    http://superbowlpartytheme.com/nfl-t-shirt-for-pets.html
    [ls lsquery="NFL Pet T Shirt" lsmid="13565" lsno="40"]

  22. #22 by admin at January 8th, 2010

    You will have to either set the cache timeout to 1 in the admin panel, or, delete the files with thise keywords in from the plugins cache folder Michael, in order to regenerate them. It looks like there was a glitch at the linkshare end while they were being generated.

  23. #23 by Michael Schurmann at January 8th, 2010

    Thanks for the help.
    I set the cache timeout to 1 and emptied the cache completely. Next I went and updated each post, still. no display, and it was so beautiful.
    Michael

  24. #24 by admin at January 9th, 2010

    Michael, I have noticed the merchandiser system to be a little shaky for the past few days, perhaps this is the issue? As it’s not a problem with the plugin.

  25. #25 by Ayda at January 23rd, 2010

    I just downloaded this plugin and created a page on my blog here: http://valentinesdayideasite.com/valentines-gits-store-powered-by-amazon/more-great-gifts/
    I installed it and put the query in [ls lsquery="valentine" lsmid=" 3346" lsno="40" lssort="asc" pnum="1"]. This is a personalization store that has valentines day gifts but the result says nothing found. What am I doing wrong?

  26. #26 by admin at January 23rd, 2010

    Hi Ayda, the only thing I can see that is wrong is the space in the merchant ID parameter ( lsmid=” 3346″ )

    Remove the space and try again.

    Tony

  27. #27 by Michael Schurmann at January 25th, 2010

    Hi,
    I have feed with about 300 items,
    what do I do to make it multipage.
    Now I Have
    [ls lsquery="Indianapolis" lsmid="35907" lsno="100"]
    on
    http://superbowlpartytheme.com/indianapolis-colts-party-theme.html
    Thank you

  28. #28 by admin at January 25th, 2010

    Michael, you will have to create another couple of pages with the additional pnum (pagenumber) parameter like so, this pnum will respect your number of items, so, if you have lsno=”30″ then pnum=”2″ will begin at item number 31

    [ls lsquery="Indianapolis" lsmid="35907" lsno="100" pnum="2" ]

    [ls lsquery="Indianapolis" lsmid="35907" lsno="100" pnum="3" ]

    You will have to create the links between the pages yourself.

    Tony

  29. #29 by admin at January 25th, 2010

    Ayda :

    I just downloaded this plugin and created a page on my blog here: http://valentinesdayideasite.com/valentines-gits-store-powered-by-amazon/more-great-gifts/
    I installed it and put the query in [ls lsquery="valentine" lsmid=" 3346" lsno="40" lssort="asc" pnum="1"]. This is a personalization store that has valentines day gifts but the result says nothing found. What am I doing wrong?

    I see it’s working for you now Ayda :)

(will not be published)