Any way to add a label to an attribute?

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

I have a number of attributes for a product, and it would be helpful to be able to provide instructional labels, as you see in CCK nodes. What would be the simplest way to go about this? Do I need to hack a patch?

Thanks!

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I'll give a +1 to this idea. Others have requested similar functionality. For now, the simplest thing to do would be a basic module using hook_form_alter() to add a description to the form elements. If you don't know how to do that, you may want to wait for an update. Eye-wink

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

Thanks for the vote, Ryan. I am putting together a few functions that will help theme the attribute form a bit, and will post them when I'm done, just in case it might be helpful to someone else.

Posts: 87
Joined: 09/08/2007
Bug Finder

Excellent Smiling

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

Here's the example: http://www.ubercart.org/forum/ideas_and_suggestions/813/heres_example_ho...

It doesn't add labels to the form, but allows you to edit the display of the form as you please, and so if you wanted to add labels, you could.