In the hookDisplayCustomerAccount method line 348, the template path is currently set to:
$this->getLocalPath() . 'views/templates/hook/front/MyAccount.tpl'
This prevents us from being able to override the template. Instead, it should be set to:
'module:saferpayofficial/views/templates/hook/front/MyAccount.tpl'
This change would allow us to properly override the template as needed.
below the function changed :
public function hookDisplayCustomerAccount()
{
$isCreditCardSaveEnabled =
Configuration::get(\Invertus\SaferPay\Config\SaferPayConfig::CREDIT_CARD_SAVE);
if (!$isCreditCardSaveEnabled) {
return;
}
if (\Invertus\SaferPay\Config\SaferPayConfig::isVersion17()) {
return $this->context->smarty->fetch(
// $this->getLocalPath() . 'views/templates/hook/front/MyAccount.tpl'
'module:saferpayofficial/views/templates/hook/front/MyAccount.tpl'
);
}
return $this->context->smarty->fetch(
// $this->getLocalPath() . 'views/templates/hook/front/MyAccount_16.tpl'
'module:saferpayofficial/views/templates/hook/front/MyAccount_16.tpl'
);
}
In the hookDisplayCustomerAccount method line 348, the template path is currently set to:
$this->getLocalPath() . 'views/templates/hook/front/MyAccount.tpl' This prevents us from being able to override the template. Instead, it should be set to:
'module:saferpayofficial/views/templates/hook/front/MyAccount.tpl' This change would allow us to properly override the template as needed.
below the function changed :
Thanks !