Magento – Problem beim OnePageCheckout – man muss immer scrollen bei den Schritten

If you go and when One Page Checkout Magento through the steps always “Continue” approved, kann es sein, dass man -vor allem nach Eingabe einer Adresse- bei nächsten Schritt wie z.B. Versandart erst einmal nach oben scrollen muss, um den nächsten Schritt bzw. dessen Titel zu sehen und diesen Schritt zu bearbeiten.

Dies kann so geändert werden, dass man bei jeweils nächsten Schritt des Checkouts / der Kasse immer wieder den jeweiligen Titel angezeigt bekommt und somit nicht nach oben scrollen muss.

Hierzu öffnet man die Datei onepage.phtml im Ordner app/design/frontend/[Ihr Template]/[Ihr Template]/template/checkout und fügt dort unten im Java Skript unter der Zeile 60 – after the closing date

);

and before

//]]>
</script>

folgenden Code ein:

    checkout.gotoSection = function (section, reloadProgressBlock) {
    Checkout.prototype.gotoSection.call(this, section, reloadProgressBlock);
    $('opc-' + section).scrollTo();
    };

Dann abspeichern und schon läuft es so wie es soll.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *