Add hooks actionSubmitIdentityBefore and displayCartRoomImageAfter

This commit is contained in:
Abhishek Kumar
2022-06-01 16:26:36 +05:30
parent 0954235b04
commit 091b566fe5
3 changed files with 9 additions and 0 deletions

View File

@@ -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') != '') {

View File

@@ -217,6 +217,12 @@
<hook id="actionBeforeAuthentication" live_edit="0">
<name>actionBeforeAuthentication</name><title>Before authentication</title><description>This hook is displayed before the customer's authentication</description>
</hook>
<hook id="actionSubmitIdentityBefore" live_edit="0">
<name>actionSubmitIdentityBefore</name><title>Before identity modification</title><description>This hook is called before customer's identity modification</description>
</hook>
<hook id="displayCartRoomImageAfter" live_edit="0">
<name>displayCartRoomImageAfter</name><title>After cart room image on checkout page</title><description>This hook is displayed after cart room image on checkout page</description>
</hook>
<hook id="displayPaymentTop" live_edit="0">
<name>displayPaymentTop</name><title>Top of payment page</title><description>This hook is displayed at the top of the payment page</description>
</hook>

View File

@@ -92,6 +92,7 @@
<p class="room_remove_block">
<a href="{$rm_v['link']}"><i class="icon-trash"></i> &nbsp;{l s='Remove'}</a>
</p>
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
</div>
<div class="col-sm-10">
<div class="room-info-container">