Ecom:Product.VariantLinkGroup

Version: - string  

Summary

Returns a link containing the Group ID and Variant ID to the product variant. It works like Ecom:Product.LinkGroup tag if regular product. 

Settings

The value is generated automatically.

Remarks

The value is returned as a HTML code snippet containing an "a href" like this:

<a href="/documentation-9/integration/integration-framework/erp-plug-in-units/live-integration-requests-and-responses?GroupID=GROUP5&ProductID=PROD132&VariantID=VO1.VO19">Mongoose Supergoose Cruiser BMX</a>

This product link contains the Group ID and Variant IDs which means that the url can be converted to contain the group name if the "eCommerce group path (GroupID)" and  "eCommerce products and variants (ProductID)" addins are enabled in customized url's:

www.site.com/WebsiteName/PageName/GroupName/Product-Name/variant-name(.aspx).

Variants

 

Ecom:Product.VariantLinkGroup.Clean:

Returns the clean product url.
Example: Default.aspx?ID=12877&GroupID=GROUP5&ProductID=PROD132&VariantID=

VO1.VO1

Ecom:Product.VariantLinkGroup.Clean.PID:

Returns the clean product url including the PID (Paragraph ID)
Example: Default.aspx?ID=12877&GroupID=GROUP5&ProductID=PROD132&VariantID=

VO1.VO19&PID=14394

Ecom:Product.VariantLinkGroup.PID

Returns the url as a HTML code snippet containing an "a href" including the PID (Paragraph ID).

Examples

Outputting the template tag

@GetString("Ecom:Product.VariantLinkGroup")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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