<?php if($yourCartObject->InCart($row_RecordsetName['IDColumn']) == true) echo("This item has been added"); ?>
Where "yourCartObject" is the name of your eCart object, "RecordsetName" is the name of the products recordset and "IDColumn" is the name of the ID Column in your products tabel.
This works great - thanks Jason
Now I have a similar case where the same product has 2 variations.
Example: T-Shirt color blue or red
So I added a column to the cart for the color and added an add to cart button for red and another for blue.
How could I show now a message if a blue or a red T-shirt was added to the cart?
Another thought was also if it would be possible to remove the add to cart button if the item is in the cart and to replace it with
the message that the item is in the cart.
Meanwhile I found a solution here: http://www.webassist.com/forums/posts.php?id=26621
It works great for what i need it - thanks again Jason
maybe it would be nice to have this as a behavior in some future releases of ecart