SAP CX Intelligence & Incubation Visual Search UI Component is an extension of SAP Commerce Storefront.
This project contains UI library that can be integrated with Spartacus applications to get the Visual Search feature.
This is implemented using angular framework and has few core spartacus modules as dependency.
- This project was generated with Angular CLI version 15.2.2.
- Node v18 or Node v18> is required
- Must have spartacus and commerce storefront application
- Clone the repo
https://github.com/SAP-samples/cxii-visual-search-ui-component
- Go to
cxii-visual-search-ui-component/visualsearch-angular-lib/projects/visualsearch
and runnpm install
- Go to
cxii-visual-search-ui-component/visualsearch-angular-lib
and runnpm install
- Run
ng build --configuration production
- Go to
dist/visualsearch
- Run
npm pack
- Copy the generated
cx-spartacus-visualsearch-<version>.tzg
file to the your host application - Add the file as dependancy in
package.json
of host app. ex:@cx-spartacus/visualsearch": "file:cx-spartacus-visualsearch-<version>.tgz
- Add the following entries to the
app.module.ts
file of host app. a. import { StylebuddyVisualSearchModule } from '@cx-spartacus/visualsearch'; b. AddStylebuddyVisualSearchModule
to @NgModule({imports:[]})
- Create a sample page with Visual Search component from
Hybris Administration Console
No known issues at this time
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.