/** * Updates the quantity on the products stock table * @author Phocea * @param $get $_GET * @return void */ function updateProductStockQuantity($get) { customprompt(); $this->getAndPrepare('products_stock_id', $get, $products_stock_id); $this->getAndPrepare('productStockQuantity', $get, $productStockQuantity); $data = array('product_stock_quantity' => $productStockQuantity); amDB::perform(TABLE_PRODUCTS_STOCK, $data, 'update', "products_stock_id='{$products_stock_id}'"); }
/** * Updates the quantity on the products stock table * @access public * @author Phocea * @param $get $_GET * @return void */ function AddStockToProduct($get) { customprompt(); $this->getAndPrepare('stockQuantity', $get, $stockQuantity); //$this->getAndPrepare('option_id', $get, $optionId); //$this->getAndPrepare('option_value_id', $get, $optionValueId); //$this->getAndPrepare('price', $get, $price); //$this->getAndPrepare('prefix', $get, $prefix); //$this->getAndPrepare('sortOrder', $get, $sortOrder); $this->arrSessionVar[] = array('product_stock_quantity' => $productStockQuantity); }