2 replies [Last post]
arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Was this information Helpful?

Hello,

I've found this bug..not sure exactly where the problem is but in the checkout settings you check this:

Use collapsing checkout panes with next buttons during checkout.

and check this:Hide shipping information when possible for carts with no shippable items.

And you purchase a product with no shipping information (like a file product), then when you click on the next button after the customer information (email), nothing happens. The Billing information should open, but I suspect the next button sent a request to open the shipping information.

Not a very big bug, but still..

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Use collapsing checkout panes with next buttons during chec

Ooohh... good find. I'll revisit that code to make sure it works as expected.

In fact, this may just have to wait for the whole checkout pane overhaul. Basically, I wasn't a jQuery wizard when I wrote that code, and I'm still not but I can do this better now. Sticking out tongue

bberl's picture
Offline
Joined: 10/25/2011
Juice: 3
JS for next-button

Ryan, I'm not sure if this is still pending or whether I missed something. I accomplished this effect with adding the following JS to my theme. There is probably a better way using the misc/collapse.js but I did what I knew and moved on.

Drupal.behaviors.ucCheckoutNextBtn = function(){

$("div.next-button input").click(function(){
return false;
});

}

function uc_cart_next_button_click(btn, next, current){
$("#" + next + "-pane").removeClass("collapsed").find("div.fieldset-content").slideDown();
$("#" + current + "-pane div.fieldset-content").slideUp(function(){
$("#" + current + "-pane").addClass("collapsed");
});
return false;
}