diff --git a/bin/frontend/controls/SimpleCheckoutWindow.js b/bin/frontend/controls/SimpleCheckoutWindow.js index 505b8c8f11c06ce514371d3903f00292ebeb7565..f85abb1f127246d4ab39ceae35d54512cf35a3c3 100644 --- a/bin/frontend/controls/SimpleCheckoutWindow.js +++ b/bin/frontend/controls/SimpleCheckoutWindow.js @@ -1,3 +1,7 @@ +/** + * @event onCancel [this] - Fires if the users cancels the order process + * @event onCloseOrderSuccessful [this] - Fires if the user closes the checkout window after a successful order + */ define('package/quiqqer/order-simple-checkout/bin/frontend/controls/SimpleCheckoutWindow', [ 'qui/QUI', @@ -69,6 +73,7 @@ define('package/quiqqer/order-simple-checkout/bin/frontend/controls/SimpleChecko html : QUILocale.get('quiqqer/order-simple-checkout', 'SimpleCheckoutWindow.btn.cancel'), events : { click: () => { + this.fireEvent('cancel', [this]); this.close(); } } diff --git a/locale.xml b/locale.xml index 20ea6fd895d3abd90fa7239d888c30b72cae419f..d52f272a2ddee76b8c730fce27e703f596164026 100644 --- a/locale.xml +++ b/locale.xml @@ -67,6 +67,12 @@ <en><![CDATA[Use a different billing address]]></en> </locale> + lCheckoutPayment.enter_address_to_show_payment_options + <locale name="CheckoutPayment.enter_address_to_show_payment_options"> + <de><![CDATA[Bitte geben Sie Ihre Adresse an, um verfügbare Zahlungsmethoden angezeigt zu bekommen.]]></de> + <en><![CDATA[Please enter your address to view available payment methods.]]></en> + </locale> + </groups> <groups name="quiqqer/order-simple-checkout" datatype="js"> diff --git a/src/QUI/ERP/Order/SimpleCheckout/Steps/CheckoutPayment.html b/src/QUI/ERP/Order/SimpleCheckout/Steps/CheckoutPayment.html index be217b6291c224a8009564579e9e68b4bf85408c..c50fdfbb109c1880a031b322f170f4b443a2c0cb 100644 --- a/src/QUI/ERP/Order/SimpleCheckout/Steps/CheckoutPayment.html +++ b/src/QUI/ERP/Order/SimpleCheckout/Steps/CheckoutPayment.html @@ -1,6 +1,6 @@ {if !isset($Payment)} <div class="order-simple-checkout-payment--info"> - Enter your delivery address to view available payment methods. + {locale group="quiqqer/order-simple-checkout" var="CheckoutPayment.enter_address_to_show_payment_options"} </div> {else} {$Payment->create()}