Problems with get content from recordset
Hello im trying to do a part where users have thier orders saved, when they return they can pay the amount they have saved in the order so i added a add to cart get content from recordset the only problem is that it only displays one product doesnt repeat the other products, help please why is this happening?
<?php
// WA eCart Get Info From RS
if ("" == "" && isset($totalRows_WADAorderdetails) && $totalRows_WADAorderdetails > 0) {
$Redirect_redirStr="";
do {
$SavCart_itemID = floatval("".$row_WADAorderdetails['DetailProductID'] ."");
$SavCart_itemName = "".$row_WADAorderdetails['DetailProductName'] ."";
$SavCart_itemDescription = "".$row_WADAorderdetails['DetailProductName'] ."";
$SavCart_itemWeight = floatval("0");
$SavCart_itemQuantity = floatval("".$row_WADAorderdetails['DetailQuantity'] ."");
$SavCart_itemPrice = floatval("".$row_WADAorderdetails['DetailPrice'] ."");
$SavCart_itemMainP = "Fam";
$SavCart_itemExtra = "";
$SavCart_itemuserP = "";
$SavCart_itempaypal = floatval("0");
$SavCart_itemporcentaje = floatval("".$row_WADAorderdetails['porcent_det'] ."");
$SavCart_itemuserIDs = floatval("0");
$SavCart_itemprecioUser = floatval("0");
$SavCart->AddToCart(1, "", $SavCart_itemID, $SavCart_itemName, $SavCart_itemDescription, $SavCart_itemWeight, $SavCart_itemQuantity, $SavCart_itemPrice, $SavCart_itemMainP, $SavCart_itemExtra, $SavCart_itemuserP, $SavCart_itempaypal, $SavCart_itemporcentaje, $SavCart_itemuserIDs, $SavCart_itemprecioUser);
} while ($row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails));
if ($Redirect_redirStr != "") {
$SavCart->redirStr = $Redirect_redirStr;
}
mysql_data_seek($WADAorderdetails, 0);
$row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails);
}
?>