Tip: Associate Links in Plugins

Jan 06, 2011 15:24


I just ran across this one.  I was setting up a Zazzle store using the "Zazzle Store Gallery" for one of my sites, and I wanted to add my affiliate code in the settings... but it didn't work.  So I took a look at the code.  Lo, I find that each link the plugin creates already has a Zazzle affiliate ID! Well then.  I went checking in the code and I find this handy line: define('ZAZZLE_ASSOCIATE_ID', '238946774077796033'); Ok, that was easy.  I want to catch the affiliate bonus here, and although I love the plugin and give the author kudos, that couple cents here and there are mine now because I was observant.  If you want to keep the affiliate bonuses from the Zazzle stores you put into your WordPress sites, here's how: In the Admin area, open the Pludins menu and click on "Edit".  Select "Zazzle Store Gallery" from the dropdown in the upper right.  This opens the main PHP file for the pligin.  Search for the above line and replace that long number with your own Zazzle affiliate ID.  Click th

I just ran across this one.  I was setting up a Zazzle store using the “Zazzle Store Gallery” for one of my sites, and I wanted to add my affiliate code in the settings… but it didn’t work.  So I took a look at the code.  Lo, I find that each link the plugin creates already has a Zazzle affiliate ID!

Well then.  I went checking in the code and I find this handy line:

define('ZAZZLE_ASSOCIATE_ID', '238946774077796033');
OK, that was easy.  I want to catch the affiliate bonus here, and although I love the plugin and give the author kudos, that couple cents here and there are mine now because I was observant.  If you want to keep the affiliate bonuses from the Zazzle stores you put into your WordPress sites, here’s how:

In the Admin area, open the Plugins menu and click on “Edit”.  Select “Zazzle Store Gallery” from the dropdown in the upper right.  This opens the main PHP file for the plugin.  Search for the above line and replace that long number with your own Zazzle affiliate ID.  Click the “Update File” button and you’re done.  Just remember to edit this file after every time you upgrade the plugin, too.



Mirrored from Word Press Website Help.
Previous post Next post
Up