Ecom:Order.TrackTraceURL
Version: - stringSummary
Returns the track & trace URL from the Shipping provider.
Settings
The value is generated automatically. The URL is based on the track and trace input fields for the specific order.
(Ecommerce - Orders - Order - Details - Track & Trace - Track & Trace section)
Examples
Outputting the template tag
@GetString("Ecom:Order.TrackTraceURL")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.TrackTraceURL"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order.TrackTraceURL");
}
Outputting the template tag
<!--@Ecom:Order.TrackTraceURL-->
Check if string has a value
<!--@If Defined(@Ecom:Order.TrackTraceURL)-->
Let's output this tag here: <strong><!--@Ecom:Order.TrackTraceURL--></strong>
<!--@EndIf(@Ecom:Order.TrackTraceURL)-->