Ecom:Product.Prices.Amount

Version: - string  

Summary

Returns the product price from the price matrix.

Settings

The value is based on the Price field for the product in the price matrix.

(Ecommerce - Product catalog - Shop - Product - Prices - Price)

Examples

Outputting the template tag

@GetString("Ecom:Product.Prices.Amount")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Prices.Amount"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.Prices.Amount"); }

Outputting the template tag

<!--@Ecom:Product.Prices.Amount-->

Check if string has a value

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