menu

SiteGenesis / Server-side JS / Module: controllers/Stores

Controller that renders the store finder and store detail pages.

Source:

Members

(static) Details

Renders the details of a store.

Source:
See:

(static) Find

Renders form to locate stores by geographical information.

Source:
See:

(static) FindStores

The storelocator form handler.

Source:
See:

Methods

(inner) details()

Renders the details of a store.

Gets the store ID from the httpParameterMap. Updates the page metadata. Renders the store details page (storelocator/storedetails template).

Source:

(inner) find()

Provides a form to locate stores by geographical information.

Clears the storelocator form. Gets a ContentModel that wraps the store-locator content asset. Updates the page metadata and renders the store locator page (storelocator/storelocator template).

Source:

(inner) findStores()

The storelocator form handler. This form is submitted with GET. Handles the following actions:

  • findbycountry
  • findbystate
  • findbyzip In all cases, gets the search criteria from the form (formgroup) passed in by the handleAction method and queries the platform for stores matching that criteria. Returns null if no stores are found, otherwise returns a JSON object store, search key, and search criteria information. If there are search results, renders the store results page (storelocator/storelocatorresults template), otherwise renders the store locator page (storelocator/storelocator template).
Source: