If you have a Dynamicweb eCommerce based website you may have placed a global basket in the master file (DW7 design or old style master template). Here is a quick and dirty example of controling html should be included if the basket is not empty.
<li class="bag"><a href="shopping-basket.aspx"><img src="basketIcon.gif" alt="Basket contains <!--@Ecom:Order.OrderLines.Count--> items" />Basket</a></li>
This may be a part of a “servicemenu” for instance at the top right of the page, therefore I have used an LI as container. There is a link to a page which shows the complete basket. The reason that I have add an alternative text on the icon which informs about the number of items in the basket is that I have found out the sometimes the if-defined will not work if the tag is not used on the page…
Do you want to share a quick-and-dirty code snippet for Dynamicweb or Dynamicweb eCommerce, please feel free to contact me.