foreach($_SESSION['shop_cart'] as $k => $v)
{
if($_SESSION['shop_cart'][$k]['id'] == $prdId)
{
$_SESSION['shop_cart'][$k]['id'] = $newId;
$_SESSION['shop_cart'][$k]['jumlah'] = $newHarga;
}
else
{
$_SESSION['shop_cart'][]= array('id'=>$prdId,'harga'=>$prodharga,'qty'=>$jmlproduct,'name'=>$prodname);
}
}