DistributorSearchControl

DistributorSearchControl displays an interface for shoppers to search for distributors and their listings. The interface includes stock-code and ZIP-code inputs for filtering.

Distributor search with ZIP code and stock-code inputs.

Configurable properties

Property Default Valid values or format Effect
EnableStockCodeSearch
Boolean
Not specified true, false When true (the legacy default), shows the stock-code search box; when false, provides ZIP-code search only.
PageSize
Integer
Not specified   Sets the number of search results displayed on each page.

SitePages.config example

The following example loads DistributorSearchControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: EnableStockCodeSearch, PageSize.

<Control src="DistributorSearchControl.ascx" />

Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.

Search results

Search results list distributors within the configured search radius and are sorted by distance from the entered ZIP code.

Distributor search results sorted by distance.

Selecting a distributor opens its location detail in a pop-up.

Distributor detail with location map.

Inherited properties

The control inherits shared visibility and shopper-access conditions from CyberStoreBaseControl.

Validate the control

  1. Display the search interface in the intended shopper journey.
  2. Search using a stock code and confirm relevant distributor listings appear.
  3. Search using a ZIP code and confirm location filtering behaves as expected.

This site uses Just the Docs, a documentation theme for Jekyll.