AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

SnipcartEngine..::..AddRequiredAttributes Method (HtmlInputGenericControl, 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(
	HtmlInputGenericControl control,
	ISnipcartItem snipcartItem
)

Parameters

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

Return Value

control with attributes