Ecom:Product.Prices.GroupID

Version: - string  

Summary

Returns the ID for the user group that is selected as requirement for the price.

 

Settings

The value is based on the User group field for the product in the price matrix.

(Ecommerce - Product catalog - Shop - Product - Prices - User group)

Remarks

Returns blank if no groups selected.

Examples

Outputting the template tag

@GetString("Ecom:Product.Prices.GroupID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.Prices.GroupID-->

Check if string has a value

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