Tickbox instead of selection

Posts: 48
Joined: 09/20/2007
Uber Donor

Hi there, I'm running a small shirt shop with alpha8 and I want to offer my customers the possiblity having somthing additional, a sticker for example. I think the selection yes / no isn't realy useful here. Am I missing the tickbox thing or isn't it possible yet? thanks

btw... great work. with workflow-ng the different shipping quotes are much smoother now!
thanks

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

I dig the shirts. Smiling Glad Ubercart is working out for you, and I'm very excited about the possibilities w/ Workflow-ng, too. As for making attributes a checkbox instead of select... there is no simple way. I've seen some snippets floating around made by others that let you change attribute boxes. The code needed is a module that implements hook_form_alter() to change the add to cart form so the select elements you want to be checkboxes have their #type changed. For a checkbox, you really might have to write a bit more to make sure it saves right. If this is unfamiliar to you, perhaps someone else who's done something like this can post their code.

Posts: 48
Joined: 09/20/2007
Uber Donor

Smiling all right, thanks for your frankness. I have to postbone this. A selectbox will do it for now.

Posts: 4
Joined: 01/03/2008

Hi snicers,
I would like to know whether you found the solution - I really need this option. Thanks a lot!

Posts: 4
Joined: 01/03/2008

Hi Ryan,
I just started with Drupal and Ubercart (looks great!). I need to implement a module which would have product attributes displayed as checkboxes (I have products with optional elements which can be added or not).
Could you please give me some pointers as where to start (I know you did in your comments, I need a little bit more info about how to change the #type and how would it affect the uc_attribute module - attachment of the option selectors to the form in uc_attribute_form_alter() etc.).
You mentioned you've seen some snippets floating around, could you please send me some links? I can not find anything related. Thanks a bunch!