You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
);
}
Thanks !
The text was updated successfully, but these errors were encountered:
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 !
The text was updated successfully, but these errors were encountered: