I was experiencing an issue where I had enabled attributes, created an attribute set to display with radio buttons and added that attribute to a node. The add to cart form however, displayed a textfield because no options were loading for that attribute for that product.

I spent a long time reading through uc_attribute.module trying to isolate the point of failure and found that the problem was that I needed to not only add those attributes to the node, but individually enable each attribute option for that node (at a separate location in that node's ubercart tab). This configuration step could be more apparent.

I found this documentation later, but http://www.ubercart.org/docs/user/3340/product_attributes_and_options says,
"You don't have to enable every option for each product, but you must predefine any option here that you want to make available on your products. "
Which seems contradictory to the configuration steps that I followed.

Maybe a note under the node's add attribute form that says, in large/strong text, "You must individually enable each option for this node at..."

Comments

ezra-g’s picture

Version: 6.x-2.x-dev » 5.x-1.5
ezra-g’s picture

Version: 5.x-1.5 » 6.x-2.x-dev

I see on that page there's also, "For each option, you must check its box to enable it for this product and then verify that the values set are correct for this product."

Perhaps this should be bold, and also indicated on the node attribute configuration form itself. I'll be more careful reading the docs next time.

rszrama’s picture

I think your concerns are good, and they might dovetail with one of webchick's ideas to default options to be enabled instead of disabled. That would probably be easier for everyone.

ezra-g’s picture

That's a much better idea. Should this be marked a dupe of another issue?

rszrama’s picture

I'll look for it in the morning... I wouldn't mind reviewing the documentation on this, too. Maybe now with Skitch I can add some easy screenshots. :)

Island Usurper’s picture

Component: Documentation » Code
Status: Active » Fixed

I've decided that having all of the options enabled by default is a good idea after all, so that's what Ubercart will do. I've also tweaked the documentation there to reflect this.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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