"Not enough stock" message
This was a request for help but I've fixed it as follows:
I have a working stock control application where items successfully purchased are being deleted from my items inventory column.
I've made the "show if" message:
"Please choose a quanity less than <?php echo $eCart1->DisplayInfo("LampInventory"); ?>
on my cart page under the cart's "Quantity" box that warns if there is insufficient stock based on the quantity they are ordering.
My method uses the server behaviour: Utilities/Show Region Utility (SRU):
If: <?php echo $eCart1->DisplayInfo("Quantity"); ?>
is: Greater than
Value: <?php echo $eCart1->DisplayInfo("Inventory"); ?>
This also works for more than one item becuase it's in a repeat region.