AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

SnipcartEngine..::..RegisterSnipcart Method (AdvantagePageTemplate, String, Boolean)

Registers the snipcart scripts if not already on the page (previously rendered by this call).

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

Syntax


public static void RegisterSnipcart(
	AdvantagePageTemplate page,
	string APIKey,
	bool registerBaseTheme
)

Parameters

page
Type: AdvantageCMS.Core.Common.BaseClasses..::..AdvantagePageTemplate
The current AdvantagePageTemplate 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)