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