Ecom:CatalogPublishing.TotalPrice

Version: - price  

Summary

Returns the total price of the products in the catalog publishing list.

Settings

The value is generated automatically.

Remarks

Includes the option to add price extensions in order to format the product price. Prefix: Ecom:CatalogPublishing.TotalPrice.

Examples

Outputting the template tag

@GetPrice("Ecom:CatalogPublishing.TotalPrice")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetPrice("Ecom:CatalogPublishing.TotalPrice"); }

Outputting the template tag

<!--@Ecom:CatalogPublishing.TotalPrice-->

Check if price has a value

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