Ecom:Cart.Shippingmethod.IsSelected
Version: - stringSummary
Returns a value if the shipping method is selected in the current country relation.
Settings
The value is based on the selection of radio button under the Country settings.
(Management Center - eCommerce settings > Country > Edit country > Relations tab > Shipping)
Remarks
The tag outputs "True" if the shipping method is selected in Country relations. If not - the tag outputs an empty string.
Examples
Outputting the template tag
@GetString("Ecom:Cart.Shippingmethod.IsSelected")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Cart.Shippingmethod.IsSelected"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Cart.Shippingmethod.IsSelected");
}
Outputting the template tag
<!--@Ecom:Cart.Shippingmethod.IsSelected-->
Check if string has a value
<!--@If Defined(@Ecom:Cart.Shippingmethod.IsSelected)-->
Let's output this tag here: <strong><!--@Ecom:Cart.Shippingmethod.IsSelected--></strong>
<!--@EndIf(@Ecom:Cart.Shippingmethod.IsSelected)-->