[eluser]mallix[/eluser]
I have implemented the Cart Class to support my project but I have problems with the size of it as we already know that a cookie is not supposed to be more than 4 Kb.
Also I have my cookie encrypted so add the size of it too.
My product looks like this:
'id' => 'product_id'
'qty' => 'quantity'
'price' => 'price'
'name' => 'product_name'
'options' => array(
'variation' => 'variation_id',
'components' => 'component_id1,component_id2...'
)
Which is the way to implement the Cart Class avoiding the cookie limit when the Cart itself is using a cookie to function.
For now I can only store 3 to 4 products with
variations and
components but what is the purpose of implementing a Cart Class in a CI project if somehow you can t have "unlimited" products in the cart.
Thank you!