cjconnor24
New member
I have built a working php shopping cart. I am using a session $_SESSION['cart'] to store the information. I add items to the session using their id's:
$_SESSION['cart'][$id] = 1;
How would i go about adding different pricing options. For example if i was selling photo's how would i add a 10x8 and a 6x4 both with different prices.
Please provide any additional database tables you think i would need. My product table at the moment looks like this:
id name description price
Thanks in advance - let me know if you need anymore additional info!
Thanks for the answers so far - how would i then pass that to my session to display in the cart?
$_SESSION['cart'][$id] = 1;
How would i go about adding different pricing options. For example if i was selling photo's how would i add a 10x8 and a 6x4 both with different prices.
Please provide any additional database tables you think i would need. My product table at the moment looks like this:
id name description price
Thanks in advance - let me know if you need anymore additional info!
Thanks for the answers so far - how would i then pass that to my session to display in the cart?