Ecom:Manufacturer.Phone
Version: - stringSummary
Returns the phone number of the manufacturer.
Settings
The value is based on the Telephone input field for a manufacturer.
(Ecommerce > Settings > Manufacturers > Manufacturer > General tab)
Examples
Outputting the template tag
@GetString("Ecom:Manufacturer.Phone")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Manufacturer.Phone"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Manufacturer.Phone");
}
Outputting the template tag
<!--@Ecom:Manufacturer.Phone-->
Check if string has a value
<!--@If Defined(@Ecom:Manufacturer.Phone)-->
Let's output this tag here: <strong><!--@Ecom:Manufacturer.Phone--></strong>
<!--@EndIf(@Ecom:Manufacturer.Phone)-->