5 replies [Last post]
psp
psp's picture
Offline
Joined: 03/31/2008
Juice: 36
Was this information Helpful?

I don't want these boxes to collapse. How do I do this? It may require a hack but I am fine with that. I searched all the documents in uc_cart and couldn't find (I assume this is what I would remove).

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: How do you make it so you don't have collapsible boxes in th

It's in your checkout settings. Smiling

"Use collapsing checkout panes with next buttons during checkout."

psp
psp's picture
Offline
Joined: 03/31/2008
Juice: 36
Re: Re: How do you make it so you don't have collapsible boxes i

Yeah, but when you uncheck that the user can still click the section title and collapse the block. The main reason for this is the box collapsing effect is somewhat buggy. It kind of jerks up and down when you click it. Is this a CSS issue?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: How do you make it so you don't have collapsible box

It's a JS issue and is usually dependent on the browser and system running it. To totally remove collapsibility, you can use a custom module implementing hook_form_alter() to adjust that in the form's array. That requires PHP and Drupal knowledge.

psp
psp's picture
Offline
Joined: 03/31/2008
Juice: 36
Re: Re: Re: Re: How do you make it so you don't have collapsible

Got it, thanks.

davegan@drupal.org's picture
Offline
Joined: 07/21/2008
Juice: 26
Happened upon this thread

I thought I'd update this thread with a bit of code to make all the checkout panes not collapsible for those who aren't module developers.

Assuming you are using the standard phptemplate theme engine that comes with drupal, just paste this into your theme's template.php file:

<?php
function phptemplate_uc_cart_checkout_form($form) {
   
    foreach (
$form['panes'] as &$pane) {
        if (isset(
$pane['#collapsible'])) {
           
$pane['#collapsible'] = 0;
        }
    }
    return
drupal_render($form);
}
?>