public function updateItemalertAction() { $db = new Application_Model_DbTable_DbGlobal(); $id = $this->getRequest()->getParam("id"); $dbprice = new Product_Model_DbTable_DbPrice(); if ($this->getRequest()->isPost()) { $post = $this->getRequest()->getPost(); try { $post = $this->getRequest()->getPost(); $post["id"] = $id; $dbprice = new Product_Model_DbTable_DbPrice(); $dbprice->updateAlertItem($post); $this->_redirect("/product/index/itemalert"); } catch (Exception $e) { Application_Form_FrmMessage::message("update alert message update failed !"); } } $items = new Application_Model_GlobalClass(); $itemRows = $items->getProductOption(); $this->view->items = $itemRows; $rows = $dbprice->getAlertbyItem($id); $this->view->rowalert = $rows; }
public function updateTypePriceAction() { $db = new Application_Model_DbTable_DbGlobal(); if ($this->getRequest()->isPost()) { try { $post = $this->getRequest()->getPost(); $dbprice = new Product_Model_DbTable_DbPrice(); $dbprice->updatePricetype($post); $this->_redirect("product/adjust-stock/type-price"); } catch (Exception $e) { } } }