I'm using ubercart-5.x-1.0-rc5 and Drupal 5.7. No matter what I try, I can only get the attributes to show as a text field, NOT as radio buttons or a select box.
Am I missing something here?
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
Where Are the Radio Buttons And Select Box?
Submitted by ericinwisconsin on Thu, 05/22/2008 - 19:53
I'm using ubercart-5.x-1.0-rc5 and Drupal 5.7. No matter what I try, I can only get the attributes to show as a text field, NOT as radio buttons or a select box. Am I missing something here?
Attributes need options, otherwise they default to text fields. Add some options. E.g. Attribute: Color, Options: Red, Green, Blue http://www.ubercart.org/docs/user/3340/product_attributes_and_options I've already done that: Manage attributes * Overview Namesort icon Required Order Number of options Display type Operations It still doesn't show as radio buttons. Oh! And I'm using the latest version of Debian with Apache2, PHP5, MySQL 5.0.51 Defining options at "Manage Attributes" isn't enough - you have to specify which attributes/options are available for each individual product when you edit that product: This is explained in the documentation I referenced. Testing UC hoping to use it to replace Yahoo Store. I've followed the docs (several times) and similar advice in this forum, but I can't get my one test product's two attributes to display as radio buttons. On the product's Attributes tab I added options to each attribute (4 for one, 2 for the other). On the product's Options tab I selected all the options. Two things to note: 1. No matter how many times I CHECK and Submit the Options, when I revisit this page they are again UNCHECKED. 2. Both Attributes are set to Required, and none of the Options is set to Default. I don't get any errors, just ghost-unchecked Options and no radio buttons. I triple-checked my access rights. I'm Drupal User 1, I have access to every action in every module. This is on a long-running Drupal site that otherwise works perfectly. What am I overlooking? Pick a default option anyway. The form is supposed to complain that it needs a value, so I think that your theme isn't displaying messages like it should. Theme designers, don't forget to put messages in the page template! It makes it really hard to figure out why the site isn't working. <?phpThanks for the response. Setting a Default fixed the problem -- I now get radio buttons. And, I now get fields on the Adjustments tab that I can use. So there were two problems cascading from my lack of Option Defaults. But... I'm pretty sure my tamplate (a slightly hacked bluemaring) shows messages. After I submitted the Options with Defaults selected, the page said "The product options have been saved." -- a message, yes? Earler, I got the message "All attributes with enabled options must specify an enabled option as default." Do you think there was an error message telling me I needed to set Defaults, but I didn't see it? Why would this particular message not be displayed when the others are? Suggestion: Requiring Options Default even when overridden by Attributes Required is seems like a source of never-ending confusion. If the code can't handle this situation silently, I recommend revising the instructions on the form to make this requirement/interaction clear.
|
|
Joined: 04/15/2008