Ecom:Product.DefaultShopID

Version: - string  

Summary

Returns the ID of the shop chosen for the product.

Settings

The value is based on the Shop field for a product.

(Ecommerce > Product Catalog > Shop > Product group > Product > Details > Settings - Shop)

Examples

Outputting the template tag

@GetString("Ecom:Product.DefaultShopID")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.DefaultShopID"); }

Outputting the template tag

<!--@Ecom:Product.DefaultShopID-->

Check if string has a value

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