How would I have the coupon checkout pane by default collapsed? I tried it with CSS but then the user has to click twice to open it, which is undesirable.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uc_coupon_collapsed.tgz | 462 bytes | ñull |
How would I have the coupon checkout pane by default collapsed? I tried it with CSS but then the user has to click twice to open it, which is undesirable.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uc_coupon_collapsed.tgz | 462 bytes | ñull |
Comments
Comment #1
wodenx commentedyou could use hook_form_alter() and change the #collapsed field to "true"
Comment #2
ñull commentedI tried the following:
Doesn't work. Then I read this. So simply overriding is not possible.
I also tried this but the code doesn't work and I could not find the right one. Any more ideas?
Comment #3
ñull commentedI also tried to change the module by adding 'collapsed' => TRUE which didn't work either:
Comment #4
wodenx commentedthis:
seems to work for me...
Comment #5
wodenx commentedthis:
seems to work for me...
Comment #6
ñull commentedThanks a lot!
Comment #7
ñull commentedTo save others some time I attach here the module.
Comment #8
longwaveI guess this could be useful to others, so marking "to be ported" and I will try to include it as an option in the module itself at some point.
Comment #9
longwaveCommitted to CVS. Configuration option is at /admin/store/settings/checkout/edit/panes
Comment #10
ñull commentedCool!