SFRA Server-side Javascript - Class: stores menu

SFRA / Server-side JS / Class: stores

stores

The stores model

Constructor

new stores(storesResultsObject, searchKey, searchRadius, actionUrl, apiKey)

Parameters:
Name Type Description
storesResultsObject dw.util.Set

a set of <dw.catalog.Store> objects

searchKey Object

what the user searched by (location or postal code)

searchRadius number

the radius used in the search

actionUrl dw.web.URL

a relative url

apiKey string

the google maps api key that is set in site preferences

Source: