the values where being returned with an extra space at the end, for example "Stickers " instead of "Stickers"
We changed the switch statement to use the trim function to strip the spaces:
<?php
echo '<br /><span class="minqty">Minimum Quantity = ';
switch(trim($eCart2->DisplayInfo("Description"))) {
case 'Postcards':
//do something e.g. echo();
echo '50';
break;
case 'Stickers':
//do something else e.g. echo();
echo '25';
break;
default:
// default behaviour if all else fails e.g. echo();
echo '12';
}
echo '</span>';
?>