Ecom:Order.TrackTraceNumber
Version: - stringSummary
Returns the track & trace number for the order
Settings
The value is based on the Track & Trace number
input field for the specific order.
(Ecommerce - Orders - Order - Details - Track & Trace - Track & Trace number)
Remarks
This tag is obsolete and replaced by Ecom:Order.TrackTraceURL.
The old track and trace number field can be enabled in Management center - Ecommerce settings - Advanced configuration - General - Track & Trace - Show old track and trace field.
Examples
Outputting the template tag
@GetString("Ecom:Order.TrackTraceNumber")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.TrackTraceNumber"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order.TrackTraceNumber");
}
Outputting the template tag
<!--@Ecom:Order.TrackTraceNumber-->
Check if string has a value
<!--@If Defined(@Ecom:Order.TrackTraceNumber)-->
Let's output this tag here: <strong><!--@Ecom:Order.TrackTraceNumber--></strong>
<!--@EndIf(@Ecom:Order.TrackTraceNumber)-->