I've got two attributes one of material and another size. I have images associated with material but do not need sizes images.

As I have no images associated with size when the user selects one of the size options the product image just goes blank. I don't want it to do anything when the user selects a size option but I want it to change the material image when the user selects a material option.

Is this possible?

Comments

AllyMediaGroup’s picture

You can use uc_dependent_attributes module to disable certain options on a per product basis. It has worked extremely well for the site I am working on

timdiacon’s picture

I don't actually want to disable the options on the product I simple want to disable option images.

I have two options, I want 1 to have images and the other to not have images.

Unless I'm misunderstanding something I think that module would completely disable the attribute.

AllyMediaGroup’s picture

Okay so you have an attribute with two options you don't want an image on one of them. Hmm, I know that if you go to /admin/store/settings/attributes you can disable the images for an entire attribute. With uc_dependent_attributes you can disable combination's of options. But making it so that one would have an image and the other wouldn't, I think you would be looking at some modding of the module. I don't see why you would want to do that, I foresee the use of this module as to make an attribute selection like say a logo selection for shirts, each option would be different so each would have an image.

timdiacon’s picture

Ah Ha...

/admin/store/settings/attributes

That is exactly what I was looking for I just want to disable option images for one of my attributes! Don't know why I couldn't find that before

Thanks!

timdiacon’s picture

oh damn I still have the same problem.

My problem is I have a product with two attributes, colour and size. Colour has option images enabled and size has option images disabled.

On the product page when you select a colour the image changes accordingly as expected. The problem is when you change the size attribute the product image goes blank? I presume the jQuery function is being called to update the image but it then can't find an image as there isn't one.

Surely the jQuery function should only be triggered if the attribute actually has option images enabled?!

timdiacon’s picture

Status: Active » Closed (fixed)

ok this is weird - by enabling the "Show No Image Icon" in attribute settings and then disabling it the problem has now gone away?

Strange.