SnipcartEngine..::..AddRequiredAttributes Method (HtmlGenericControl, ISnipcartItem)
Adds the required class (snipcart-add-item) and the required attributes only (Id, Name, Price, Url)
Namespace:
AdvantageCSP.Snipcart.EngineAssembly: AdvantageCSP.Snipcart (in AdvantageCSP.Snipcart.dll)
Syntax
public static Object AddRequiredAttributes( HtmlGenericControl control, ISnipcartItem snipcartItem )
Parameters
- control
- Type: HtmlGenericControl
The HtmlGenericControl that called this method
- snipcartItem
- Type: AdvantageCSP.Snipcart.Interfaces..::..ISnipcartItem
The product item that implements the ISnipcartItem interface