hi all,
i want to develop a shopping cart which uses only sessions to store products their id and prices etc. so, i thought of an idea to store products details in a multidimensional arrays and then into session my idea is like this
array(
[productid1]=>array(
[0]=>product name
[1]=>productprice
[2]=>product image
)
[productid2] =>array(
[0]=>product name
[1]=>productprice
[2]=>productimage
)
)
and then
$_session['pr']=array();
and we call the session in add to cart page and display cart acording to the productids
we should also able to delete or edit the product details in cart
i think its pretty complicated but i thinks it will reduce database burden when user orders simply but they will not goto to paypal gateway and we will insert temporary orders in database my idea reduses lot of burden on database and after 20 min sessions will expire
i tried every thing if i get little help from the experts here i will able to do it
thanks in advance