/** * Update the Configuration of the Hosting Plan * * * Update the configuration of the service selected * with the new parameters of the service. * * IMPORTANT: * We have to sync the parameters with the Isp Panel selected */ public function updateconfAction() { $id = $this->getRequest()->getParam('id'); if (is_numeric($id)) { // Get the service information $service = OrdersItems::getAllInfo($id, "product_id"); if (!empty($service['product_id'])) { // Get the system parameters/attributes of the service selected $sysattributes = ProductsAttributes::getSysAttributes($service['product_id']); // Update the parameters in the service order detail OrdersItems::updateSysParameters($id, $sysattributes); } $this->_helper->redirector('edit', 'ordersitems', 'admin', array('id' => $id, 'mex' => $this->translator->translate('The task requested has been executed successfully.'), 'status' => 'success')); } else { $this->_helper->redirector('list', 'orders', 'admin', array('mex' => $this->translator->translate('Service item not found.'), 'status' => 'danger')); } }