Well, I was hoping there was something built in. I think I resolved the issue by pushing the file move in the flow of things to just before I destroy the cart and work off the DB, but just for the sake of potential future use and because it might help someone else...
I don't see a function that just returns the item's index so I tested this and it works. Any better method?
<?php
if (!isset($_SESSION)) {
session_start();
}
//WA eCart Include
require_once("WA_eCart/MyCart_PHP.php");
$MyCart->GetContent();
// Diagnostic Display
print_r($MyCart->Items);
// Change Value
for ($n=0;$n<count($MyCart->Items);$n++) {
if ($MyCart->Items[$n]->ID == $MyProductIDValue) {
$MyCart->Items[$n]->image = $newImageName;
$MyCart->ReIndexContent();
$MyCart->ResetAll();
$MyCart->SaveCart();
break;
}
}
// Diagnostic Display
echo "<hr><hr>";
print_r($MyCart->Items);
echo "<hr><hr>";
print_r($_SESSION);
?>
It would be nice if eCart included a method like
$MyCart->SetValue($ID, "columnName", "New Value");
Thanx :D