Ecom:Cart.ShippingMethod.Price.IsZero
Version: - stringSummary
Returns a value if the current country has no fee.
Settings
The value is generated automatically, but based on the settings under Shipping - Country fee settings.
(Management Center - eCommerce settings > Orders > Shipping > Shipping method > Country fees tab - Current country - Fee)
Remarks
The tag outputs "True" if there is no the country shipping fee in Shipping - Country fees. If there is a fee for the country - the tag outputs an empty string.
Examples
Outputting the template tag
@GetString("Ecom:Cart.ShippingMethod.Price.IsZero")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Cart.ShippingMethod.Price.IsZero"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Cart.ShippingMethod.Price.IsZero");
}
Outputting the template tag
<!--@Ecom:Cart.ShippingMethod.Price.IsZero-->
Check if string has a value
<!--@If Defined(@Ecom:Cart.ShippingMethod.Price.IsZero)-->
Let's output this tag here: <strong><!--@Ecom:Cart.ShippingMethod.Price.IsZero--></strong>
<!--@EndIf(@Ecom:Cart.ShippingMethod.Price.IsZero)-->