Hex Angel - Patrick
Our nature lies in movement; complete calm is death.
Re: Display color swatches
« Reply #1 on: 10/03/06 at 11:47:57 »
It's actually quite simple, though a bit time consuming.
First, design a graphic image displaying the colour combination for each CP product type. The images should all be the same size, and you need to make blanks for all the types which have no colour options. (Don't just copy mine; that wouldn't be nice.) Embed the product number into the name of each image. EG:
for product number 145.
Put all these image files in their own directory.
To find product numbers go to http://www.cafepress.com/cp/info/sell/products/viewall . You'll find the productno in that page's links to each product.
Once you've created an image for every product, enter the cpadmin.cgi for your shop. Under Product Thumbnail Page Options, insert the following image code to the Product Thumbnail Grid Layout:
where /pathtoimages is the directory in which you've put your type-productno.png images.
Edit the code to make it pretty, save changes and VOILA!