Thanks Ray,
after some experimentation this is what I ended up with
if (!function_exists("cartSort")) { /* see http://www.webassist.com/forums/post/219584/ */
function cartSort($a,$b) {
return ($a->ParentSKU > $b->ParentSKU)?1:-1; // sorts a - z
return ($a->ProductType > $b->ProductType)?-1:1; // sorts 1 - 3
}
}
then adding
usort($eCart1->Items, "cartSort");
after
$eCart1->GetContent();
like so
<?php
$eCart1->GetContent();
usort($eCart1->Items, "cartSort");
?>
gives me exactly what I am looking for.
Thanks again.
Best Regards,
Dave Buchholz
I-CRE8 Limited