This is a modified version of the 2.4.xx November release of GSP, and with modified DLLs, the enabled/disabled banner images, and the updated page/control files, and some database update scripts to add the tables, and some default admin settings, anyone could put this into their website, I think.
The only part I have not added yet is a page to modify the admin settings, but those could be configured manually pretty easy to add though.
I chose to make my own tables and stored procedures so I would not have to modify too much of your original code, otherwise it might get messy when upgrading to newer versions.
Once the admin settings and tables are in place it's automated. Each user can configure their own settings, which are blank by default) via a Make Money From My Pictures link at the top of the page.
How Sales Works: The user clicks the ink, which passes a high res image to Zazzle.com, they purchase the product with the image from Zazzle and Zazzle pays markup to the store owner, and referrals to the referring user.
There are two ways you make money from Zazzle.
1. Sales royalty/markup of items in your store. You create products, feed in images (or up load them) and when someone buys your product with your picture or your own, you get a commission of the sale, a minimum of 10% markup
2 Referrals. If you have a product, and I link to it, with my referral ID in the link I get a commission of 15% and up. More if I refer tons of people to Zazzle products.
The Zazzle API works by letting you pass in link to the high res version of the image, to a Zazzle store/product link.
Users would have understand that if they enable the store, the website owner would technically be getting money from the sale of their pictures, but the user would hopefully get referral credit from Zazzle if they enter their accountID. Or those user could choose to provide their own store/referral information and take all the money for themselves. This might not be the intended use of the Zazzle API, but it should all work in theory. =:)
If the user wants to use their own store link, they have to tell Zazzle that they own some of the pictures on the website by 'declaring' the domain. (http://www.zazzle.com/my/associate/domains)
From Zazzle.com
http://www.zazzle.com/se...roducts/nameyourroyalty
What if my product is sold as a result of a "Referred Sale"?
"Referred Sale" means a sale where Zazzle incurs a cost to acquire that sale. Examples of Referred Sales include: sales arising from Zazzle's Associate Program; sales resulting from a referral through a registered Affiliate channel; sales resulting from our Search Engine Marketing efforts; and sales resulting from our special relationship with Google Base. Let's say a Zazzle Associate likes a particular t-shirt you designed and they put a link to it on their website or blog. When a buyer comes to Zazzle through that link and buys your shirt, we pay the Zazzle Associate a referral fee for referring that order to your product.
How the code works: The Zazzle API works by letting you pass in link to the high res version of the image, to a Zazzle store/product link.
For example, users are not able to browse the high res version of this image on my website without being an admin.
http://galleryserver.gre...com/default.aspx?moid=2
So in the code behind I grab the media object ID and the craft a special link to the high res version of the image, which can be retrieved even if the user is not logged in. (a bug?,but a handy one in my case)
Small:
http://galleryserver.gre...moid=2&dt=2&g=0
High Res:
http://galleryserver.gre...moid=2&dt=3&g=0
I then feed that link into the Zazzle API link by replacing/adding the querystring value for CoverIMage, or Image1 in the template buffet/product template link from in the admin zazzle settings or user zazzle settings table, depending on the users store settings.
So to put it all together, the user who added this image, has chosen to enable the banner/store and has given a referral ID, so we user the website's Zazzle template buffet link, and replace the coverimage link, with the link to the high res version of this image, and then replace the 'referral' ID with their referral ID '238345325100453600'. Note that the AT query string ID is the ID of the website 'great maine picture', and the RF ID in the link below is for the user '238345325100453600' (and ID i just made up).
http://www.zazzle.com/ap...id%3d2%26dt%3d3%26g%3d0