Ecom:Product.Weight

Version: - double  

Summary

Returns the weight of the product.

Settings

The value is based on the Weight input field for a product.

(Ecommerce > Product Catalog > Shop > Product group > Product > Details > Default information)

Examples

Outputting the template tag

@GetDouble("Ecom:Product.Weight")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:Product.Weight"); }

Outputting the template tag

<!--@Ecom:Product.Weight-->

Check if double has a value

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