Hi Guys,I need help in modifying an existing shopping cart script that was originally a tutorial on coding a simple shopping cart.
The link to the actual shopping cart tutorial is below
http://www.thewatchmakerproject.com/...-shopping-cart.
I actually want to modify the current shopping cart script to suit a simple photogallery web project with the link below
http://wbrlhosting.com/xphotos/photos.php?photoid=10
The original shopping cart script makes use of a single database table that has all the products stored in them.However i want to extend the functionality to suit my requirements which involves having size and color options.
For this purpose i have created 2 extra tables, One for Sizes and the Other for Color.The Size table has side id,size and corresponding price.
I therefore need help in modifying the actual script codes below
I presume the above session is created using the id URL vairable
$cart = $_SESSION['cart'];
if ($cart) {
$cart .= ','.$_GET['id'];
} else {
$cart = $_GET['id'];
}
$_SESSION['cart'] = $cart;
I would like to modify it to also recognize both option ids for both size and color.