Jump to content

- - - - -

changing image with changing attribute

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1   raydona

  • Members
  • 31 posts

Posted 20 June 2012 - 23:41

I am selling clothes, specifically tops. These tops come in different colours. I have placed a colour attribute (drop down list) for each style. I was wondering is there any way of achieving the following, when a user clicks on a colour the image shown on the page changes to the colour of choice. I'll be grateful for all help.

#2   DunWeb


    The Censored One

  • Members
  • 13,084 posts

Posted 21 June 2012 - 01:17


There is no current contribution to achieve that. You would have to create one or hire a developer to develop one for you.

:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)


  • Members
  • 6,620 posts

Posted 21 June 2012 - 10:49

Around the 'net there are osCommerce plug ins for this, however the only ones i have ever tested are pricey, buggy and not supported as they ought to be.
Sometimes you're the dog and sometimes the lamp post

My Contributions

#4   multimixer


    Lemons or Melons ?

  • Partner
  • 4,752 posts

Posted 21 June 2012 - 11:21

Do you mean this?


#5   burt


    I drink and I know things

  • Community Team
  • 12,500 posts

Posted 21 June 2012 - 11:35

A couple of lines of jquery will accomplish what you want. In essence made simple; you need to link an already uploaded image to the attribute.

Eg; attribute = pink. Image = pink.gif

Now use the html of jquery. There are loads of tutorials out there already, another one is not needed here.

You can make it more complicated by allowing the shopowner to upload the images per attribute from within the admin. There is already a addon that allows this, that would need to be tied into the product_info page.

This is a signature that appears on all my posts.  It is not specifically aimed at you.


IF YOU MAKE A POST REQUESTING HELP...please state the exact version of osCommerce that you are using. THANKS
If you are still on the old style osCommerce, it is time to move to Responsive.


#6   multimixer


    Lemons or Melons ?

  • Partner
  • 4,752 posts

Posted 21 June 2012 - 11:43

Here is an other example that work a little different and is based on option types (the store is an older rc2a)

#7   Fourpaws

  • Members
  • 58 posts

Posted 21 June 2012 - 13:59

Try Product Attribute Pictures here. It might be what you are looking for.