1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

Display color swatches





EMAIL MARTY message board
  « Display color swatches »
Welcome, Guest. Please Login or Register.
02/18/18 at 22:16:55
Home Help Search Login Register message board
   About cpshop
   Customization Help
   Display color swatches
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Display color swatches  (Read 1549 times)
Gold Dragon

Posts: 54


Display color swatches
« on: 09/30/06 at 22:02:38 »
Reply with quote Modify message

I'd like to be able to display fabric color options on the product thumbnail pages...any ideas on how I would go about doing this? I know this site has done it:
Hex Angel - Patrick
Gold Dragon

Posts: 500

Our nature lies in movement; complete calm is death.

Re: Display color swatches
« Reply #1 on: 10/03/06 at 11:47:57 »
Reply with quote Modify message

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  . 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:

<img src="/pathtoimages/type-<[producttypeno]>.png">

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!


« Last Edit: 10/04/06 at 19:06:19 by Hex Angel - Patrick » Logged

CPSHOP Namaste
BLOG Inspired by travel Inspired by spirit Inspired by the arts
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to: message board (

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.