4 replies [Last post]
snicers's picture
Offline
Uber DonorInternationalizationizer
Joined: 09/20/2007
Juice: 192
Was this information Helpful?

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

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
I dig the shirts. Glad

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.

snicers's picture
Offline
Uber DonorInternationalizationizer
Joined: 09/20/2007
Juice: 192
Re: I dig the shirts. Glad

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

ErHo's picture
Offline
Joined: 01/03/2008
Juice: 8
Is there any update on checkbox in product attributes?

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

ErHo's picture
Offline
Joined: 01/03/2008
Juice: 8
Hi Ryan, I just started with

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!