Ecom:Product.ID.UrlEncoded
Version: - stringSummary
Returns the encoded product ID of the current product.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Ecom:Product.ID.UrlEncoded")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ID.UrlEncoded"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.ID.UrlEncoded");
}
Outputting the template tag
<!--@Ecom:Product.ID.UrlEncoded-->
Check if string has a value
<!--@If Defined(@Ecom:Product.ID.UrlEncoded)-->
Let's output this tag here: <strong><!--@Ecom:Product.ID.UrlEncoded--></strong>
<!--@EndIf(@Ecom:Product.ID.UrlEncoded)-->