From 091b566fe5e78ce99c65ba009b2e944aca4b4c8a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 1 Jun 2022 16:26:36 +0530 Subject: [PATCH] Add hooks actionSubmitIdentityBefore and displayCartRoomImageAfter --- controllers/front/IdentityController.php | 2 ++ install/data/xml/hook.xml | 6 ++++++ themes/hotel-reservation-theme/shopping-cart.tpl | 1 + 3 files changed, 9 insertions(+) diff --git a/controllers/front/IdentityController.php b/controllers/front/IdentityController.php index 261422fd1..ea8c2af16 100644 --- a/controllers/front/IdentityController.php +++ b/controllers/front/IdentityController.php @@ -49,6 +49,8 @@ class IdentityControllerCore extends FrontController $origin_newsletter = (bool)$this->customer->newsletter; if (Tools::isSubmit('submitIdentity')) { + Hook::exec('actionSubmitIdentityBefore'); + $email = trim(Tools::getValue('email')); if (Tools::getValue('months') != '' && Tools::getValue('days') != '' && Tools::getValue('years') != '') { diff --git a/install/data/xml/hook.xml b/install/data/xml/hook.xml index e4c163458..dc9fbb43e 100644 --- a/install/data/xml/hook.xml +++ b/install/data/xml/hook.xml @@ -217,6 +217,12 @@ actionBeforeAuthenticationBefore authenticationThis hook is displayed before the customer's authentication + + actionSubmitIdentityBeforeBefore identity modificationThis hook is called before customer's identity modification + + + displayCartRoomImageAfterAfter cart room image on checkout pageThis hook is displayed after cart room image on checkout page + displayPaymentTopTop of payment pageThis hook is displayed at the top of the payment page diff --git a/themes/hotel-reservation-theme/shopping-cart.tpl b/themes/hotel-reservation-theme/shopping-cart.tpl index ff67712af..3951c0bbb 100644 --- a/themes/hotel-reservation-theme/shopping-cart.tpl +++ b/themes/hotel-reservation-theme/shopping-cart.tpl @@ -92,6 +92,7 @@

 {l s='Remove'}

+ {hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}