marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Display color swatches

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Display color swatches »
Welcome, Guest. Please Login or Register.
12/12/17 at 17:54:42
Home Help Search Login Register
   marty.net 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 1523 times)
Jason
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:
http://www.filmmakertees.com/cgi-bin/store.cgi/cult_classic_movie_quotes/cultclassicts/1521035
Thanks!!
Logged

www.viadesigns.com
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

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

  type-145.png

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:

<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!

Cheers,

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

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

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