Ecom:Product.Volume

Version: - double  

Summary

Returns the volume of the product.

Settings

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

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

Examples

Outputting the template tag

@GetDouble("Ecom:Product.Volume")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if double has a value

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