Ecom:Cart.ShippingMethod.Price

Version: - string  

Summary

Returns the country fee or default fee for the shipping method.

Settings

If there is a fee for the current country the country fee is used. If there is no country fee the default fee is used.

The country fee is based on the Fee input field under the Shipping- Country fee settings.

(Management Center - eCommerce settings > Orders > Shipping > Shipping method > Country fees tab - Current country - Fee)
 

The default fee is based on the Fee input field under the Shipping - Fee settings.

(Management Center - eCommerce settings > Orders > Shipping > Shipping method > Fees tab - Fee)

Remarks

Includes the option to add price extensions in order to format the fee price. See Price extensions (Prefix: Ecom:Cart.ShippingMethod.Price).

Examples

Outputting the template tag

@GetString("Ecom:Cart.ShippingMethod.Price")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Cart.ShippingMethod.Price"))) { @* 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"); }

Outputting the template tag

<!--@Ecom:Cart.ShippingMethod.Price-->

Check if string has a value

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