Ecom:Cart.Shippingmethod.EligibleForFreeShipping

Version: 9.6.0 boolean  

Summary

Returns True or False according to appropriate option state of the shipping.  

Settings

Depend on 'Eligible for free shipping' option in 'Settings-Ecom-Orders-Shipping-the Shipping-Free Settings-Discounts' section. 

Remarks

It allows to get current state of the option for current shipping. 

Examples

Outputting the template tag

@GetBoolean("Ecom:Cart.Shippingmethod.EligibleForFreeShipping")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Cart.Shippingmethod.EligibleForFreeShipping"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:Cart.Shippingmethod.EligibleForFreeShipping"); }

Outputting the template tag

<!--@Ecom:Cart.Shippingmethod.EligibleForFreeShipping-->

Check if boolean has a value

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