Ecom:Product.Number

Version: - string  

Summary

Returns the product number of the current product.

Settings

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

(Ecommerce > Product Catalog > Product group > Product > Details > Settings)

Examples

Outputting the template tag

@GetString("Ecom:Product.Number")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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