New Zenner
- Join Date:
- Aug 2006
- Posts:
- 4
- Plugin Contributions:
- 0
code to add products to shopping cart
Hi,
I have the following requirement.The user can select a list of items and all the items should get added to the shopping cart at once.For this I am trying out some code.The code I have is as follows```
foreach($idArray as $key => $value) {
echo $idArray[$key]." ";
$_SESSION['cart']->add_cart($idArray[$key]);
}
where idArray is the array of products I have.
The products are getting added,but for some reason the products do not have their prices set and they are all showing 0 as price.
Am I doing something wrong?