protected function updateCart(array $order, array $cart)
    {
        foreach ($cart['items'] as $item) {

            $data = array(
                'user_id' => $order['user_id'],
                'order_id' => $order['order_id']
            );

            $this->cart->update($item['cart_id'], $data);
        }
    }
protected function updateCart(array $order, array $cart)
    {
        foreach ($cart['items'] as $item) {

            $data = array(
                'user_id' => $order['user_id'],
                'order_id' => $order['order_id']
            );

            $this->cart->update($item['cart_id'], $data);
        }
    }
protected function updateCart ( array $ order , array $ cart ) { foreach ( $ cart [ 'items' ] as $ item ) { $ data = array ( 'user_id' => $ order [ 'user_id' ] , 'order_id' => $ order [ 'order_id' ] ) ; $ this -> cart -> update ( $ item [ 'cart_id' ] , $ data ) ; } }
Update cart items after order was created
@param array $order
@param array $cart
Update cart items after order was created