в модуле wayforpay.php такой код:
public function install()
{
if (!parent::install() OR !$this->registerHook('payment')) {
return false;
}
return true;
}
дальше такой:
public function hookPayment($params)
{
if (!$this->active) return;
if (!$this->_checkCurrency($params['cart'])) return;
global $smarty;
$smarty->assign(array(
'this_path' => $this->_path,
'id' => (int)$params['cart']->id,
'this_path_ssl' => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'modules/' . $this->name . '/',
'this_description' => 'Оплата через систему WayForPay'
));
return $this->display(__FILE__, 'wayforpay.tpl');
}
могу ли я полагать что удалив эти строки я уберу привязку модуля к хуку Payment (который невидим для моего магазина) или же нужно сразу в код модуля бабахнуть привязку к хукам displayPaymentReturn и paymentOptions (которые и включают в себя ненужные мне оплаты чеком и банковским переводом) ?