StrandsScriptGenerator Methods |
The StrandsScriptGenerator type exposes the following members.
Name | Description | |
---|---|---|
GetCultureSettingsScript |
Returns script which sets current culture, so correct item captions can be shown.
| |
GetCurrencySettingsScript |
Returns script which sets current currency, so correct prices can be shown.
| |
GetCustomizedRendererScript |
Returns code which registers custom rendering function and declaration of the rendering function. jQuery templates library has to be included in order for this code to work.
| |
GetInitializationScript |
Returns script which starts execution of the Strands library. Must be included after Strands library.
| |
GetLibraryIncludeScript |
Returns script which includes Strands library file. Returned string contains html script tags.
| |
GetPurchasedTrackingScript |
Returns script which logs "purchased" event to the Strands Recommender.
| |
GetSearchedTrackingScript |
Returns script which logs "searched" event to the Strands Recommender.
| |
GetUpdateShoppingCartTrackingScript |
Returns script which logs "updateschoppingcart" event to the Strands Recommender.
| |
GetUserLoggedTrackingScript |
Returns script which logs "userlogged" event to the Strands Recommender.
This script indicates which user is browsing the web. This event needs to be logged at every page user visits (see http://recommender.strands.com/developers/javascript/#ulogin"/).
Strands can later associate this user ID with the ID of the newsletter recipient and show appropriate recommendations.
| |
GetVisitedTrackingScript |
Returns script which logs "visited" event to the Strands Recommender.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |