[eluser]cityzen[/eluser]
Thanks for the fast reply...
*I just did some crossbrowser testing before I replied and it seems to work fine on Safari and Firefox so the issue seems to be Chrome, unfortunately*
I've been doing more testing and thought I confirmed that my items were limited to 5 but somehow got six into the cart somehow (cannot replicate this). This code is used to add a sample of a product to a cart. The fetch method is grabbing the info.
Code:
function add_sample()
{
$sample = $this->Product_model->fetch('variation', $this->uri->segment(3));
$sample_price = ($sample[0]->sample_price > 0) ? $sample[0]->sample_price : $this->sample_price;
$data = array(
'id' => 'SMPL-' . $sample[0]->id,
'qty' => 1,
'price' => $sample_price,
'name' => 'Product Sample'
);
$this->cart->insert($data);
header('Location: /cart/');
}
While testing I set up a page where I was adding items to the cart and echoing out the $this->session->userdata('cart_contents'); and it seems like after the 5th product, all new products just replace the last one.