Shopzilla WordPress Plugin (version 1.2)

This is another update to the Shopzilla WordPress Plugin I released back in February. You can use this plugin to monetize a WordPress blog by featuring embedded product comparison results inside each blog post or on a sidebar.

Before you setup the plugin on your blog, you first need to apply to Shopzilla Publisher Program which is a “pay per click” affiliate program meaning each click on the product results below results in an affiliate commission to the publisher (a blogger in this case). This is very similar to how Google Adsense works except Shopzilla program is designed specifically for shopping oriented websites.

What is included with this update?

This particular plugin update makes it possible for you to configure the maximum number of products for each product comparison results table individually. This can be done with another (third) argument that you supply to the “shopzilla_offers” tag inside your blog post. If you leave the argument at 0 then the global value from the plugin options will be used.

For example the line of code below will product the price comparison table you see at the end of this blog post.

<!—shopzilla_offers=633034954,8,3—>

In addition to this change, I added a configuration parameter for the domain to be used to talk to the API server. Shopzilla has changed this domain in the past and this parameter will allow you to change it on the fly for your blog in case Shopzilla does it again in the future.

How do I get it on my blog?

To upgrade - just download this archive and copy its content of on top of your previous installation in the “plugins” folder. For new installations please refer to the Readme file that comes with this plugin.

For more information on how to become a Shopzilla publisher please go to the Shopzilla Publisher Program home page. To find why I wrote this plugin, please read my original blog post about it.

Apple IPod Nano 8 GB - Black
Holds Up To 2,000 Songs, 7,000 Photos, Or 8 Hrs Of Video - 2 In. Display - Battery Life: Up To 24 Hrs Of Audio/5 Hrs Of Video
Shop at Price Rating Stock
$189.99 8.7 In Stock
$199.00 9.0 In Stock
$188.00 9.3 In Stock


17 Responses to “Shopzilla WordPress Plugin (version 1.2)”


  1. 1 Christopher Calvi Jun 16th, 2008 at 11:40 am

    Great plugin, Yan!

  2. 2 Tinh Jun 18th, 2008 at 10:23 am

    Hi there, it is a great plugin but it does not work in my blog. I followed all guidelines but nothing happens, i got API AND PUT THE CODE IN MY INDEX.PHP AND SINGGLEPOST.PHP BUT NOTHING HAPPENS.

    dO I NEED TO CHANGE API server path?

    Thanks
    T

  3. 3 Rich Owings Sep 26th, 2008 at 2:00 pm

    Hi,

    I get this error when I try to activate the plugin…
    Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/digitas7/public_html/bestgpsdeals/wp-content/plugins/shopzilla/shopzilla.php on line 27

  4. 4 Rich Owings Sep 28th, 2008 at 5:28 am

    It looks like the plugin doesn’t work with WP 2.6 . Any intentions to update it?

  5. 5 Yan Sep 28th, 2008 at 11:43 am

    Make sure the PHP you use is version 5. Earlier versions will give you the error you quoted in your comment.

    This blog runs on Wordpress 2.6.2 and as you can see the Shopzilla plugin is doing just fine

  6. 6 Rich Owings Sep 28th, 2008 at 11:47 am

    Hey, thanks for getting back to me. PHP is v 5.2.6. WP is version 2.6.1. I hope we can resolve this because it would be a huge help for me.

  7. 7 Rich Owings Sep 29th, 2008 at 11:57 am

    I updated WP to 2.6.2, but still get the same error.

  8. 8 Yan Sep 29th, 2008 at 1:06 pm

    I still suspect PHP version older than 5. Create phpinfo.php file of the following content in your HTTP home folder:

    < ?php
    phpinfo();
    ?>

    Open this URL in your browser: [Your Domain]/phpinfo.php and verify PHP version (it will be on the top of the page). More info here:

    http://us.php.net/phpinfo

  9. 9 Rich Owings Sep 29th, 2008 at 1:18 pm

    You’re right. It shows PHP 4.4.9. I had assumed a later version, since on the left side of my CPanel page it shows 5.2.6. I’ll check with my host and see what the deal is.

  10. 10 Rich Owings Sep 29th, 2008 at 1:32 pm

    That did it! Thank you so much for your help. I hope to try out the plugin later today.

  11. 11 Yan Sep 29th, 2008 at 1:34 pm

    It seems you have both installed. Try renaming phpinfo.php to phpinfo.php5 or edit your .htaccess file to set the right handler for files with PHP extension

  12. 12 Howard Oct 11th, 2008 at 11:27 am

    Yan,

    I have a suggestion for your plug-in. Instead of using “productID-some product number” in the link, use “keyword-some keyword.” Replace “some keyword” with the string of the blog title and let Shopzilla search return the relevant product.

    This will make the plug-in automatic and save the time having to search for a particular product. Then, this would be the ultimate Shopzilla plug-in!

  13. 13 Yan Oct 11th, 2008 at 12:05 pm

    What you suggest would display not one but many products that satisfy the search criteria. Shopzilla already has a widget like that, and I am using it on one of my websites. Wrapping it around in a WP plugin is a different story. I will think about it. The problem I see is that Shopzilla search is not all that great to fetch products by blog post title. I would have to add some code to enable you to filter out non-essential keywords, otherwise the product results will not be relevant (if any)

  14. 14 Howard Oct 11th, 2008 at 12:49 pm

    I see your point. I have only tried a couple of searches with the title as the keyword. When you search for “Widget 1234 Review” it returns widget accessories, too. Maybe you could filter only the first item. I realize you would have to rewrite some code. I’m only vaguely familiar with PHP or I would try to play around with it. I did try some simple changes in the code, but it was returning RSS read errors.

    I have not seen the Shopzilla widget you are speaking of that does this; I used the “Top Search Results” on the publisher site, copied the code and replaced a simple keyword search term with a blog title.

    I was just trying to think of a way to automate this plug-in. Anything in this business that frees up time is a plus!

  15. 15 Hiro Oct 25th, 2008 at 1:24 am

    Hi Yan,

    Cool plugin just need some assistance.
    I added the following code to test out the plugin

    But I Get the following error message:
    Error reading RSS data.

    Any help is appreciated :)

  16. 16 Rich Owings Nov 17th, 2008 at 11:59 am

    Hi Yan,

    Hey, the plugin is working great for me! Thank you very much!

    I have a question about caching… If I install the wp-cache plugin, will it overide the Shopzilla cache settings?

  1. 1 { s } » themes/plugins for 06-12-2008 Pingback on Jun 12th, 2008 at 8:45 pm

Leave a Reply