Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:11:37+00:00 2026-06-05T01:11:37+00:00

This is an awfully specific and awfully challenging issue. I know my chances of

  • 0

This is an awfully specific and awfully challenging issue. I know my chances of finding someone else with this problem are slim, but I have to try. I’m stumped.

I’m using Drupal 6, Ubercart, and the Option Images module.
I would like it to switch product images as different attributes are selected.

This works for certain images, but not for others. It seems to be tied to the attribute set, not anything about the image files–I’ve tried the same image on lots of attribute sets. I’ve also tried creating different attribute sets to see if I could figure out what aspect of the attributes is making option_images not work. No luck so far.

The Problem

  • For certain groups of attributes, option images will upload but they do not display on the product page.

Things I’ve Learned

  • Even for products that show broken option_images behavior, the images are uploaded. I see them in the database in the files table and on the filesystem.
  • There is an array on the product page I can see: ‘$node->option_images’. This array is populated for working product pages, and not populated for product pages that don’t show option images.
  • When I turn on the database debugger, I can see that the database is queried (uc_option_image_load). On the broken pages though, it queries for images for the wrong product. (eg: it looks for sharp cheddar option images when it’s on the swiss almond page) These products use different attribute sets.

Screenshots

See, the images upload ok.
But it doesn't display option images on the product page (note the blank array)
Database queries for the wrong product

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:11:38+00:00Added an answer on June 5, 2026 at 1:11 am

    I found it. The fact that it allows me to upload and preview option_images put me on the wrong path. It is actually a setting which enables and disables attributes for option images.

    The setting is here: admin/store/settings/attributes

    I think this is a usability bug, since letting me upload images for disabled attributes confused the heck out of me. But anyway. Solved.

    Seriously questioning the Drupal way right about now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel this is an awfully obtuse question to ask, but strangely, this problem
This has been a rather problematic issue on numerous occasions. We have alot of
This seems awfully basic but here goes. If you are keyboard-oriented you get used
This must be awfully simple, but I didn't find an answer. Here is an
This should be simple, but the answer is eluding me. If I've got a
this is my code that I write it but I want to use LINQ
This is probably a stupid question, but how much of a security risk is
Here's my wild and whacky psuedo-code. Anyone know how to make this real? Background:
EDIT: Optimization results at end of this question! hi, i have a following code
I have code a bit like this public class MyObject { private bool IsValidDay(ref

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.