[support] OT: color swatches for drupal

Luke drupal at lists.tacticus.com
Thu Jul 30 20:28:36 UTC 2009


I am aware of how to implement attributes and options.

I need to enable the user to choose between a list of around a hundred 
color options for a particular product.
They need to be able to see an actual approximation of each of those 
colors.

The former site did this with a table.  The background of a cell was 
styled to the desired color, and the link to the product was given a 
25X25PX transparent image, to allow the background to be viewed.
That is not only browser dependent (among other things), it would be 
difficult to do, unless I create a view for each product, and even then 
it may not be enough.

So I thought I could find a way to generate actual color pictures to use 
with the UC option images module.

However, I've not any idea how to generate those color pictures.

Luke


On Thu, 30 Jul 2009, Leandro Monk wrote:

> Luke escribió, El 30/07/09 16:39:
> > Hello
> >
> > This is probably OT, unless there is a Drupal way to do this.
> >
> > For a client, I am designing a Drupal and UC based site.  Some of the 
> > products require the buyer to choose a color from a specific range (think 
> > carpets and such).
> >
> > On their previous hand-coded site, they had a little tool into which they 
> > could enter a hex RGB value, and the site would show the color (one for 
> > each color option).
> >
> > I was thinking that a better way might be to provide a gif or jpg image 
> > for each color, using the UC option images module.
> >
> > However, how to generate those images, which would essentially be little 
> > blocks of solid color, is the question which is plaguing me.
> >
> > Surely this is not a unique problem.
> >
> > I found closed source Windows based programs (ColorImpact, for example) 
> > which claim some such capability, but not only does that seem like 
> > overkill, it seems as if there should be some simple way to go about this 
> > using an open source option.
> >
> > Ideas?
> >
> > Thanks
> >
> > Luke
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
> >
> >   
> http://www.ubercart.org/docs/user/3340/product_attributes_and_options
> 
> Regards
> 
> --
> LeitoMonk
> --
> [ Drupal support list | http://lists.drupal.org/ ]
> 


More information about the support mailing list