AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

SnipcartEngine..::..AddRequiredAttributes Method (WebControl, ISnipcartItem)

Adds the required class (snipcart-add-item) and the required attributes only (Id, Name, Price, Url)

Namespace:  AdvantageCSP.Snipcart.Engine
Assembly:  AdvantageCSP.Snipcart (in AdvantageCSP.Snipcart.dll)

Syntax


public static Object AddRequiredAttributes(
	WebControl control,
	ISnipcartItem snipcartItem
)

Parameters

control
Type: WebControl
The WebControl that called this method
snipcartItem
Type: AdvantageCSP.Snipcart.Interfaces..::..ISnipcartItem
The product item that implements the ISnipcartItem interface

Return Value

control with attributes