I created quantity and unit on product module.
Quantity = Total boxes of product.
Unit = one box how many item inside the box.
i wanted to add one more database column called total_unit.
which means --> quantity * unit = total_unit
but product controller direct save the array to database.
if ($this->mdl_products->run_validation()) {
$this->mdl_products->save($id);
redirect(‘products’);
}
How to add total_unit to that array and save it.
Please advice…
Thank you