Thread: help with this
View Single Post

  #8 (permalink)  
Old 27-02-2006, 04:13 PM
louie's Avatar
louie louie is offline
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by evilhomer
So are you going to share the solution with us Louie ??
the solution was to create the

function add_item_to_cart($id,$pdid,$quantity) {
$cart_id = $id.$pdid; //this the line that got me mixed up - was looking into the wrong direction
//echo $cart_id;
//die();
// set cookie and store value in session
setstp();
session_regenerate_id(TRUE);
$_SESSION["cart"][$cart_id][0] = $id; //$item["productid"];
$_SESSION["cart"][$cart_id][1] = $quantity;//$quantity
$_SESSION["cart"][$cart_id][2] = $pdid; //$productdetailid
header ("location:viewcart.php");//redirect after product added to cart
//}
}
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Reply With Quote