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.








Great plugin, Yan!
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
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
It looks like the plugin doesn’t work with WP 2.6 . Any intentions to update it?
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
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.
I updated WP to 2.6.2, but still get the same error.
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
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.
That did it! Thank you so much for your help. I hope to try out the plugin later today.
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
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!
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)
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!
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
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?