Fran from the Zazzle store CartoonizeMyPet, setup a website using the Zazzle API. Read her story below to learn how to do an API yourself, and check out her Zazzle store CartoonizeMyPet!
I vowed that after my website was up, I’d write a tutorial on how to set up the templates buffet. Well it’s up, buffet and all: www.cartoonizemypet.com. So here we go:
If you haven’t already, please read the official guide. If the Create-a-Product API works for you, great! But if you find yourself staring at the screen wondering what you’ve done wrong, then this is the tutorial for you.
Step 1: Declare your domains
Before you do anything you should declare your domains. Just enter the domain name of where your API images will be stored. That’s the base domain name, not the folder location. So even though my images are in their own directory on my website, I put www.cartoonizemypet.com in the box.
Step 2: Create your Templates
Create some products with the image you’d like to change in them. On the image, tick the “Make this a template” box.

The “Product page label” is the name that will appear above the template on the product page. The “URL parameter name” is important because it tells the API what the image is. Make sure you keep this name identical for all the images you’d like to change at the same time. So for instance; I have all my Boston Terriers as ‘boston’, Labradors as ‘lab’ and so on.
One nifty thing you can do to really make your product page look smart, is uncheck the “Allow editing on product page.” This will stop the image appearing to the customer as a template, but still allow it to be registered by the template buffet!
If you’re creating the template products individually make sure you have the “This product is a template” box checked on the “Product Info and Pricing” page.

If you’re making your templates via Quick Create have “Templates for sale” chosen in the “Quick Create Product Options”

Feel free to hit “Customize it” on any of my products to see how I have them set up.
Step 3: Preparing your link
With a lot of different products/templates in a category, the Create-a-Product API can often get very confused. I found it much easier to just deal with the URL itself. Now don’t panic, it looks scary but once you pick it apart it’s really very simple. Let the dissection begin!
http://www.zazzle.com/api/create/at-
238606341631845955?rf=238606341631845955
Change the numbers in red above, to your own associate ID
&ax=DesignBlast&cg=196123651038034647
This tells the api which category to use. Replace the red text above with your unique category id. To find the right number, go to the category you’d like to use for your template buffet (in your actual store, not in My Zazzle) and copy the numbers at the end of the url. So for my Boston Terriers I went to the category and copied the category id at the end of the url:
![]()
&br=true
This turns on the category browser on the left hand side. If you don’t want it, just leave this bit of code out altogether.
&continueUrl=http%3A%2F%2Fwww.cartoonizemypet.com%2Fshop%2Fdogs%2Fboston-terrier%2Findex.shtml
This is the url of the link back that appears at the top of the page. Put in whatever link you’d like, but replace every /, with %2F. So my link above will go to:
http://www.cartoonizemypet.com/shop/dogs/boston-terrier/index.shtml
&rut=Go%20Back%20to%20Pet%20Selection
This is the text that will represent the link. Again you can put whatever you like, just change any spaces to %20.
&fwd=ProductPage&boston=http%3A%2F%2Fwww.cartoonizemypet.com%2Fshop%2Fpix%2Fdogs%2Fboston-terrier%2Fred-pi.png
Now comes the fun bit! Make the word in red the “URL parameter name” you assigned in Step 2, and the green url the location of the image you’d like to change it to. As before, make sure you change any / to %2F.
If you’d like to change more than one thing at once just add them to the end with &s. So if I had set up some template text with the URL param “bostontxt”, I could add:
&bostontxt=Boston%20Terrier
(Just change any spaces to %20)
Step 4: The completed link
Once you’ve constructed your url you just have to add some simple html to make it work. Here’s my completed link:
Code:
<a href=”http://www.zazzle.com/api/create/at-238606341631845955?rf=238606341631845955&ax=DesignBlast&cg=196123651038034647&continueUrl=http%3A%2F%2Fwww.cartoonizemypet.com%2Fshop%2Fdogs%2Fboston-terrier%2Findex.shtml&rut=Go%20Back%20to%20Pet%20Selection&fwd=ProductPage&boston=http%3A%2F%2Fwww.cartoonizemypet.com%2Fshop%2Fpix%2Fdogs%2Fboston-terrier%2Fred-pi.png” rel=”nofollow”><img src=”red-pi.jpg” alt=”Red Pied Boston Terrier” title=”Red Pied” /></a>
Check that it works and then create a different one for every image you’d like to swap in! Here’s my completed Boston Terrier category.
Step 5: Protecting Your Images
As you’ll be hosting your print ready files on your server, there’s a danger of people following the link back and pinching them. To protect your images folder I recommend using a .htaccess file. To do this you’ll first need to check that your hosting company allows it (in my experience, they often do. If you haven’t got hosting yet I recommend BlueHost)
Create a simple .txt file in Notepad (or equivalent) with the following:
Order deny,allow
Deny from all
Allow from zazzle.com
<Files .htaccess>
order allow,deny
deny from all
</Files>
Save the file and upload it to the images directory on your server (make sure your images are in their own directory because otherwise this file will stop people seeing your website.) Once uploaded – change the filename to .htaccess (yup with the dot at the front and no file extension at the end). This will prevent anyone but Zazzle from accessing the folder.
For more information on using .htaccess files see BlackQuoteProducts great lens on them!
Conclusion
I hope this has helped shed some light on the the template buffet! It really is fantastic once it’s working. This is my first run through of this tut so please let me know if anything doesn’t make sense so I can improve it. Happy buffeting!
July 14, 2010 at 10:23 am |
Great article and great site CartoonizeMyPet
Two thumbs up
July 14, 2010 at 10:48 am |
Fantastic article… looking forward to CartoonizeMyPet’s new look website!
July 14, 2010 at 3:01 pm |
Oh no! No more new look CartoonizeMyPet websites for a while… this last one took me took me 3mths!
July 14, 2010 at 10:58 am |
If you’re concerned you’ve gone color blind because you can’t see the red and green color coding I keep referring to; don’t fret… you can see it here: http://forum.zazzle.com/tools/api_templates_buffet_tutorial
July 14, 2010 at 3:01 pm |
Oh yay! The color coding works now, thanks Jes!
July 14, 2010 at 4:18 pm |
Great article and wonderful resource – thanks so much!
July 14, 2010 at 6:05 pm |
[...] [...]
July 15, 2010 at 4:38 am |
Brilliant, many thanks, bookmarked for serious attention.
I love the way your sites all work together, congrats!
July 15, 2010 at 7:08 am |
Fran,
Even though this doesn’t suit my needs at this time I’m still utterly impressed with what you’ve done! All that work is truly impressive!!
Much luck and success to you.
A brilliant concept and design idea seen through to it’s conclusion.
Thanks for sharing your knowledge.
Pip
July 21, 2010 at 2:17 am |
Thank you for the helpful info. Much appreciated!
July 24, 2010 at 3:33 am |
That is awesome! Thank you
July 24, 2010 at 10:52 am |
Very cool. Thanks so much for your tutorial. Very generous of you. As for when I will get to this, it’s a little too far above my skill level at this point. But I do see it in my future. Your customized pets are delightful and the concept is very smart. Down the road, I will try a mini Animal Lane version (my shop, see url). It’s great to become acquainted with your designs and ideas! Inspiring, really.
Cheers,
Marian
August 26, 2010 at 4:06 pm |
I learning English and I donnot understand many compleks words. Thank you to your post that someone as simple as me could have understand!!
October 29, 2010 at 11:57 am |
I’ve added some new information to this tut in the forum: http://forum.zazzle.com/tools/api_templates_buffet_tutorial