SnipcartEngine..::..AddAttributes Method (HtmlControl, ISnipcartItem, Boolean, List<(Of <(<'String>)>)>)
Add attributes to the web button to enable it for Snipcart.
Namespace:
AdvantageCSP.Snipcart.EngineAssembly: AdvantageCSP.Snipcart (in AdvantageCSP.Snipcart.dll)
Syntax
public static Object AddAttributes( HtmlControl control, ISnipcartItem snipcartItem, bool validate, List<string> attributesToAdd )
Parameters
- control
- Type: HtmlControl
The HtmlControl 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