AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

SnipcartEngine..::..AddAttributes Method (HtmlInputGenericControl, ISnipcartItem, Boolean, List<(Of <(<'String>)>)>)

Add attributes to the web button to enable it for Snipcart.

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

Syntax


public static Object AddAttributes(
	HtmlInputGenericControl control,
	ISnipcartItem snipcartItem,
	bool validate,
	List<string> attributesToAdd
)

Parameters

control
Type: HtmlInputGenericControl
The HtmlInputGenericControl that called this method
snipcartItem
Type: AdvantageCSP.Snipcart.Interfaces..::..ISnipcartItem
The product item that implements the ISnipcartItem interface
validate
Type: Boolean
Determine if the validation routine should be called before rendering
attributesToAdd
Type: List<(Of <(<'String>)>)>
Only attributes contained in the list will be added to the control

Return Value

control with attributes