Ecom:StockUnit.StockLocation

Version: - string  

Summary

Returns the name of the stock location.

Settings

The value is based on the Stock location field for the stock location selected in Stock for the product.

(Ecommerce > Product catalog > Shop > Group > Product > Stock > Edit stock info > Name)

Examples

Outputting the template tag

@GetString("Ecom:StockUnit.StockLocation")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:StockUnit.StockLocation"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:StockUnit.StockLocation"); }

Outputting the template tag

<!--@Ecom:StockUnit.StockLocation-->

Check if string has a value

<!--@If Defined(@Ecom:StockUnit.StockLocation)--> Let's output this tag here: <strong><!--@Ecom:StockUnit.StockLocation--></strong> <!--@EndIf(@Ecom:StockUnit.StockLocation)-->