Ecom:Order.ShippingFee

Version: - price  

Summary

Returns the fee for the shipping method. 

Settings

The value is based on the available input fields on the Fees tab for a shipping method.

(Management Center > eCommerce settings > Orders > Shipping > Shipping method > Fees)

Remarks

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

Examples

Outputting the template tag

@GetPrice("Ecom:Order.ShippingFee")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetPrice("Ecom:Order.ShippingFee"); }

Outputting the template tag

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

Check if price has a value

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