Welcome Guest, Not a member yet? Register   Sign In
Cart - Cookie problem (size of cart)
#1

[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!


Messages In This Thread
Cart - Cookie problem (size of cart) - by El Forum - 07-16-2012, 05:33 AM
Cart - Cookie problem (size of cart) - by El Forum - 07-16-2012, 05:53 AM
Cart - Cookie problem (size of cart) - by El Forum - 07-16-2012, 07:32 AM
Cart - Cookie problem (size of cart) - by El Forum - 07-16-2012, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB