SnipcartEngine..::..AddRequiredAttributes Method (HtmlControl, 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( HtmlControl control, ISnipcartItem snipcartItem )
Parameters
- control
- Type: HtmlControl
The HtmlControl that called this method
- snipcartItem
- Type: AdvantageCSP.Snipcart.Interfaces..::..ISnipcartItem
The product item that implements the ISnipcartItem interface