After customers click on CONTINUE on step 3 (SHIPPING METHOD) it loads the BOTTOM of step 4 (PAYMENT INFORMATION) - you cannot see the payment options at all! You have to scroll up to see them! This is a real problem because many customers are not able to figure out they have to scroll up...How can I correct this?

1 Answer 1


I don't know the root cause for this. But in magento RWD theme they have fixed this issue by scroll to top by jquery.

Checkout.prototype.gotoSection = function (section, reloadProgressBlock) {

    // Adds class so that the page can be styled to only show the "Checkout Method" step

    if ((this.currentStep == 'login' || this.currentStep == 'billing') && section == 'billing') {



    if (reloadProgressBlock) {



    this.currentStep = section;

    var sectionElement = $('opc-' + section);


    this.accordion.openSection('opc-' + section);

    // Scroll viewport to top of checkout steps for smaller viewports

    if (Modernizr.mq('(max-width: ' + bp.xsmall + 'px)')) {

        $j('html,body').animate({scrollTop: $j('#checkoutSteps').offset().top}, 800);


    if (!reloadProgressBlock) {




Check this file

  • Thank you Meenakshi - where do I put this code into? Thanks! ;-)
    – Allysin
    Commented Jul 20, 2015 at 12:56
  • Create a new js file and add that to checkout/onepage page. Commented Jul 20, 2015 at 13:02
  • I'm so sorry to be so dumb - I would create a something.js file where I put this code into, right? How do I reference that in the checkout then? thank you thank you thank you
    – Allysin
    Commented Jul 20, 2015 at 13:13
  • Check my pervious comment you have to add this js file in template/checkout/onepage.phtml Commented Jul 20, 2015 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.