Ecom:Order.IsEmpty

Version: - string  

Summary

Returns a value if the cart is empty.

Settings

The value is generated automatically.

Remarks

The tag outputs "True" if the cart is empty. If there are products in the cart, the tag outputs an empty string.

Examples

Outputting the template tag

@GetString("Ecom:Order.IsEmpty")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.IsEmpty"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Order.IsEmpty"); }

Outputting the template tag

<!--@Ecom:Order.IsEmpty-->

Check if string has a value

<!--@If Defined(@Ecom:Order.IsEmpty)--> Let's output this tag here: <strong><!--@Ecom:Order.IsEmpty--></strong> <!--@EndIf(@Ecom:Order.IsEmpty)-->