SnipcartEngine..::..RegisterSnipcart Method (AdvantageMasterPageTemplate, String, Boolean)
Registers the snipcart scripts if not already on the page (previously rendered by this call).
Namespace:
AdvantageCSP.Snipcart.EngineAssembly: AdvantageCSP.Snipcart (in AdvantageCSP.Snipcart.dll)
Syntax
public static void RegisterSnipcart( AdvantageMasterPageTemplate masterPage, string APIKey, bool registerBaseTheme )
Parameters
- masterPage
- Type: AdvantageCMS.Core.Common.BaseClasses..::..AdvantageMasterPageTemplate
The current AdvantageMasterPageTemplate that made this call
- APIKey
- Type: String
The API key required by snipcart for authenticaion
- registerBaseTheme
- Type: Boolean
true will register the base snipcart theme. (i.e. //cdn.snipcart.com/themes/2.0/base/snipcart.min.css)