Hello everyone,

i am using the uc_option_image 6.x-1.x-dev of this module. I have applied some patches that i have found in the discussion lists (the one for making attributes required see http://drupal.org/node/907966).

Everything works ok when i am in Garland theme, but wneh i change the default theme to a fusion based theme images do now swap and a javascript error is occuring saying that

var images = this.images[nid][aid]; is undefined at line 44 of uc_option_image.js file.

What is wrong? Anybody can give a hint?

thanks in advance

Comments

virtuali1151’s picture

I have the same prob....:(

zmxn’s picture

and I have the same problem. How to fix it?

zmxn’s picture

One friend helps me. To fix this bug in uc_option_image.js i replace lines:

var pid = $(input).parents('.node').attr('id');
var nid = pid.replace('node-', ''); 

to:

var pid = $("div.add-to-cart > form").attr('id');
var nid = pid.replace('uc-product-add-to-cart-form-', '');

After that option image works correctly in all themes.

virtuali1151’s picture

Hmm.. I dont seem to have those lines in uc_option_image.js???? What number are those lines...??

virtuali1151’s picture

Are you using the dev version or 6.x.14??