Login and Pay by Amazon von Creative Style mit Delivery Date von Amasty verbinden

If you use the extension “Login and Pay by Amazon” Creative Style in its Magento store and continues to use the Extension “Delivery Date” of Amasty, um den Kunden die Möglichkeit zu geben ein Wunsch-Versanddatum auszuwählen und / oder einen Kommentar hinzuzufügen, muss man noch eine Kleinigkeit anpassen, um beides miteinander verwendbar zu bekommen.

Generell wird das Datumsfeld -sowie das Kommentarfeld- im Amazon-Checkout zwar angezeigt, die Kalenderfunktion bzw. der Kalender funktioniert jedoch nicht, wenn man auf das Icon klickt. This is because, dass die zugehörigen Java-Skripte nicht geladen wurden.

Um dies nun zu ermöglichen, öffnet man die Layout-Datei amdeliverydate.xml aus dem Ordner app/design/frontend/base/default/layout/amasty/amdeliverydate (und kopiert sie am besten in das eigene Template-Verzeichnis app/design/frontend/[IhrTemplate]/[IhrTemplate]/layout/amasty/amdeliverydate) und fügt dort vor dem abschließenden

</layout>

the following lines

<amazonpayments_advanced_checkout_index> <!-- Login and Pay by Amazon -->
<reference name="head">
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name></action>
<action method="addItem"><type>js</type><name>amasty/amdeliverydate/deliverydate.js</name></action>
</reference>
<reference name="happy">
<block type="core/html_calendar" name ="html_calendar" as="html_calendar" template ="page/js/calendar.phtml"/>
</reference>
</amazonpayments_advanced_checkout_index>

Then save, hochladen und nun sollte die Kalenderfunktion von Amasty Delivery Date auch im Amazon Checkout funktionierten.

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 *