Hi,

why does the image function not work with some themes? For example: the greehouse theme!

Comments

ludo1960’s picture

Hmm, I've got the same problem too. I guess that something is missing from the page.tpl in the theme.

merzthomas’s picture

What would that be? Any idea? Also the image preview does not work!

ludo1960’s picture

I'm not sure, but a trip through the drupal API should solve this.

tjholowaychuk’s picture

In order for the images to switch correctly it is dependent on certain markup to be available. I created the module using Garland so you may want to compare node.tpl.php between Garland and your current theme. From what I can remember it uses the following selectors:

* .add_to_cart select.form-select
* #edit-attributes-
* .node
* .node .content

This is an issue when it comes to Drupal themeing as some JavaScripts will be very dependent on the markup. As for the thumbnail not showing up at all in the first place if you are not simply printing $content out in node.tpl.php you may need to manually print the uc_option_image value from the $node object

tjholowaychuk’s picture

Title: Image Display » Image Not Displaying Due To Theme Markup
tjholowaychuk’s picture

Status: Active » Fixed

I will be documenting the theming dependencies shortly

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.