this will take some hand coding to accomplish
on the page with the search recordset, add an update cart behavior. Open the server behaviors panel and click plus button, select eCart -> Cart Display -> Update Cart. Set the trigger to before page load.
in code view, make sure the recordset code is before the update cart code, then add the following code block between them:
<?php
if ($totalRows_recordsetName > 0) { //if the recodset is not empty
do { // loop through the rs
$eCart1->MoveFirst(); // move cart to begining
while (!$eCart1->EOF()) { // cart loop
if($eCart1->DisplayInfo("ID") == $row_recordsetName['ProductID']) { // if cartID matches rs ID
$_POST['eCart1_Delete_'.$eCart1->DisplayIndex] = $eCart1->DisplayInfo("ID"); // create the product delete form element
}
$eCart1->MoveNext();
} // end cart loop
$eCart1->MoveFirst(); // move cart to begining
} while ($row_recordsetName = mysql_fetch_assoc($recordsetName)); // end rs loop
} // end rs not empty
?>
Note: this is a sample of the code to use. In my sample, the name of the eCart object is "eCart1". the name of the recordset is "recordsetName" and the name of the ID column is "ProductID". if your application uses different names, you will need to edit the code to use the correct naming.