function onTP_Storelog($data) { $log = plgPaymentBycheckHelper::Storelog($this->_name, $data); }
function onTP_Storelog($data) { $log_write = $this->params->get('log_write', '0'); if ($log_write == 1) { $plgPaymentBycheckHelper = new plgPaymentBycheckHelper(); $log = $plgPaymentBycheckHelper->Storelog($this->_name, $data); } }