Ecom:CustomerCenter.MyCarts

Version: 9.7.0 string  

Summary

Returns a button for navigating to My carts.

Settings

The value is generated automatically based on the My carts menu text settings under the paragraph settings.

(Page > Paragraph > Module tab > Menu texts panel).

Examples

Outputting the template tag

@GetString("Ecom:CustomerCenter.MyCarts")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:CustomerCenter.MyCarts"); }

Outputting the template tag

<!--@Ecom:CustomerCenter.MyCarts-->

Check if string has a value

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