Jump to content

$_SESSION shopping cart problem


tescgo

Recommended Posts

Hi,

 

I am using a $_SESSION for my shopping cart but cannot figure out how to total my quantity.

 

The format I am using is:  $_SESSION['cart']['itemid']['qty']

 

I realise that i could write a for loop to start at item id 0 and end at 1000 each time totalling the qty field but there must be a better, more efficient way,

 

Does anybody have any advice?

 

Mark

Link to comment
https://forums.phpfreaks.com/topic/217157-_session-shopping-cart-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.