The view models (JavaScript files) and HTML renderers for the SearchAndNavigation plugin module’s UI components are defined in the CommerceAccelerator/Plugins/SearchAndNavigation/src/main/web-app directory. Templates for associated cartridges are located in CommerceAccelerator/Plugins/SearchAndNavigation/src/main/deploy/import/templates. The following table describes each of the SearchAndNavigation UI components.

UI Component

Description

Cartridge Type

Breadcrumbs

Presents the search terms and refinement selections currently chosen by the shopper.

SecondaryContent

GuidedNavigation

Displays the available refinement dimensions to the shopper in the form of an array of RefinementMenu UI components (described below).

SecondaryContent

MainMenu

Displays a menu in the header that allows the shopper to choose a top-level category or a sub-category that belongs to a top-level category.

HeaderContent

ProductDescription

Renders the product description for the currently viewed product.

ProductInformation

ProductDetail

Retrieves the product ID stored in the MDEX and uses it to query the catalog repository for product properties. These properties are then used to render the product detail page.

MainProductContent

RefinementMenu

Presents valid follow-on refinement queries to the shopper for a particular dimension.

Navigation

ResultsList

Retrieves and manages search results from the MDEX. Displays the returned products in a paginated and sortable form.

MainContent

Search

Allows the shopper to submit a search term through an input field on an HTML form. When the input field is empty, the Search button is disabled. When the field contains text, the Search button is enabled.

HeaderContent

SkuSelector

Renders the SKU pickers that the shopper uses to refine a product selection to a single SKU, along with the quantity field and the Add to Cart button. Also, ensures that a shopper’s selections are valid before allowing the shopper to add the selected item to the cart.

The SkuSelector UI component has a runtime dependency on the addItemToOrder function found in the cart-services JavaScript module included with the CommerceAccelerator.Plugins.ShoppingCart plugin. This dependency facilitates the adding of items to the shopper’s order.

If the CommerceAccelerator.Plugins.ShoppingCart plugin is not included in the same application as this component, you must ensure that any custom plugin that replaces the ShoppingCart includes a Web services client that has an addItemToOrder function that matches the API of the addItemToOrder function found in cart-services.

ProductInformation


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices