[eluser]CroNiX[/eluser]
Code:
$product_ids = array(); //add this here before your first loop
foreach($product_list as $product){
In the loop, change
Code:
$product_id = array(
to
Code:
$product_ids[] = array(
remove this from your loop
Code:
$this->session->set_userdata('product_list',serialize($product_id));
and add this just outside of your loop, above where you calculate $sub_total.
Code:
$this->session->set_userdata('product_list', serialize($product_ids));