public function enable() { $payment = $this->Payment(); $payment->active = 1; $payment->save(); return parent::enable(); }
/** * Shopware method automatically getting called for plugin Activation * * @return boolean Indicator of success */ public function enable() { if (parent::enable()) { try { $installer = new Shopware_Plugins_Frontend_SofortPayment_Components_Services_Setup($this); $installer->softUpdate(); return true; } catch (Exception $exception) { return false; } } return false; }