HCL Commerce Version 9.1.8.0 or later

Developing wishlist UI widgets

Easily create Create wishlist and Display wishlist widgets.

About this task

To view the wishlist in the page, map wishlist-view react component to the route/ wish-list. The following topics show you how.

Procedure

  1. Create a wish-list folder inside src/components/widgets, for adding the Create wishlist widget and Display wishlist widget.
  2. After you have created a wish-list folder, open the downloaded source code zip.
  3. Copy the following files from wishlisttutorial_sourcecode/src/components/widgets/wish-list/ folder and paste them in the newly created wish-list folder:
    • create-wishlist-widget.tsx
    • display-wishlist-widget.tsx
    • index.ts

    Styled UI components of the HCL Commerce React Store SDK are used for designing the above widgets. Material UI design is used for Styled UI components.