[ProducCategorytFieldTemplateTag].Clean

Version: - string  

Summary

Returns the value of the product category field.

Settings

The value is based on the Product category field on the product detail page.

(Ecommerce > Product catalog > Group > Product > Details tab > Product category group section > Product category field)

Examples

Outputting the template tag

@GetString("[ProducCategorytFieldTemplateTag].Clean")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("[ProducCategorytFieldTemplateTag].Clean"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("[ProducCategorytFieldTemplateTag].Clean"); }

Outputting the template tag

<!--@[ProducCategorytFieldTemplateTag].Clean-->

Check if string has a value

<!--@If Defined(@[ProducCategorytFieldTemplateTag].Clean)--> Let's output this tag here: <strong><!--@[ProducCategorytFieldTemplateTag].Clean--></strong> <!--@EndIf(@[ProducCategorytFieldTemplateTag].Clean)-->