This is extremely frustrating!
I went to ordersummary.ascx, and added a row to the table with a label stating that "Minimum Order is $70.00!" and turned its visibility off. Then I went to the code-behind page, and in the section marked "Loads the order" I added the following:
if (this.Order.SubTotal < 70)
{
lblMinOrder.visible = true;
}
When I try to rebuild, I get an error that tells me that the name "lblMinOrder" does not exist in the current context. I tried other names as well, and also tried not using the lbl prefix. Am I not allowed to add a label to a page here???
If my approach is all screwed up (and I admit it could be, as I'm still trying to learn this stuff), could some kind soul please point me in the right direction???
I am now trying to use a Text Box control, which seems to be friendlier, but can't figure out how to change its visibility in the code-behind page....
if
(this.Order.SubTotal < 70)
{
HOW DO I TALK TO MY TEXT BOX HERE???
}
P.S. Is this a Really Hard Question for some reason??? It seems that any well-thought-out eCommerce site should consider a minimum purchase, since so many Merchant Accounts have minimums.....