Questions tagged [spartacus-storefront]
Use the spartacus-storefront tag for questions related to the SAP Commerce "Project Spartacus" storefront (see https://github.com/SAP/cloud-commerce-spartacus-storefront)
671
questions
0
votes
0
answers
4
views
How to customize StoreFinderStoreDescriptionComponent in Spartacus?
I'm want to customize the StoreFinderStoreDescriptionComponent in Spartacus to add another field. Can someone provide an idea how to do that please? Or even how to customize lower level components.
...
0
votes
0
answers
20
views
Customise Previous and Next Buttons of Banner Slider in Spartacus Storefront
I am looking to customise Previous and Next Slider buttons on Banner Component in Spartacus Storefront. I am looking to add some custom logic on click of slide button (previous & next). Is there ...
-1
votes
0
answers
44
views
NGINX error after deploying SSR Spartacus code in CCV2
I am trying to deploy SSR Spartacus code in Hybris CCV2. the code works perfectly in local but after it is deployed in CCV2, i can only access the site using https://example.com/index.html. I get ...
0
votes
1
answer
38
views
SAP - Trouble showing component content in Spartacus
I'm trying to implement Spartacus with my SAP CC project. I loaded the electronics-spa default page and I'm making a new page from scratch inside there ("testPage1" have a ParagraphComponent ...
0
votes
0
answers
12
views
cx-carousal next and previous control CTA
I am using Spartacus 4.3 and using the "ProductReferenceComponent" to display cross-selling products. I want to add some addition functionality when user clicks on the next or previous ICONs....
0
votes
1
answer
54
views
Postcss-loader flex-start warnings
I'm using SAP Spartacus/Composable Storefront 6.5 and receiving some postcss-loader warnings when start the project, about the end/flex-end use inside the lib.
Build at: 2023-10-28T17:39:59.198Z - ...
0
votes
1
answer
26
views
How to overwrite service from lazy loaded feature lib?
We need to add custom implementation of AccountSummaryFacade from @spartacus/organization.
Before the feature libs were introduced it worked by just providing the custom implementation in a module:
@...
0
votes
1
answer
40
views
How to Import module based on a condition in Angular
I am creating a module for Search integration. instead of directly importing the SearchModule inside app.module.ts file, i want to call an API and import the SearchModule based on the API response.
@...
0
votes
1
answer
37
views
Error: No provider for ActiveCartService! - when extending CheckoutStepsSetGuard in Spartacus
I am having the following errors when I try to override and extend the CheckoutStepsSetGuard :
ERROR Error: Uncaught (in promise): Error: Invalid CanActivate guard in cmsMapping
Error: Invalid ...
0
votes
0
answers
29
views
SAP Spartacus 6 ASM not loading styles
A recently update, from V4.3 to V6.4, of a B2B composable store disrupted the styling on all ASM components, it seems like none of theme has any CSS property, the look like the default html styling. ...
0
votes
0
answers
60
views
Upgrade Spartacus 4.3 to 6.0: Module not found
I'm trying to upgrade Spartacus 4.3 to 6.0. I resolved most of the build issues. Got stuck with this error:
./src/app/spartacus/features/checkout/scb-checkout-base/components/scb-order-confirmation/...
0
votes
0
answers
18
views
Overwrite normalizeHttpError in Spartacus
I need to overwrite / patch the function normalizeHttpError (https://github.com/SAP/spartacus/blob/develop-6.6.x/projects/core/src/util/normalize-http-error.ts) from Spartacus. The function is used ...
0
votes
0
answers
47
views
NullInjectorError: No provider for ActiveCartService
After I moved to 6.4 I have a component that uses ActiveCartService to add products but it no longer works (worked in V4) and in the console I get:
NullInjectorError: R3InjectorError(AppModule)[...
0
votes
1
answer
80
views
SAP Commerce Cloud (Hybris) - Search for Customers in ASM by Groups (B2B Unit)
My stakeholders would like our sales team to be able to look up customers in SAP Commerce Cloud (Hybris) Assisted Service Module using by entering the B2B Unit ID that the customer is linked to. In ...
0
votes
0
answers
15
views
Pass data from parent to child using Spartacus cxComponentWrappet
We are using cxComponentWrapper for dinamically loading child cms components.
Does cxComponentWrapper support passing data to components?
1
vote
3
answers
55
views
Cannot add spartacus schematics to project
When I run:
ng add @spartacus/schematics
I systematically get the error:
Cannot read properties of undefined (reading 'kind')
I am using:
Node v18.17.1, CLI 15.0.5 and NPM 9.6.7
I have created the ....
0
votes
0
answers
27
views
OCC Search API results-> products are not in same order everytime
We are facing a strange issue on Spartacus category page. Every time the same category page gets loaded, the products in the search results are not in the same order. Those products are coming up in ...
1
vote
1
answer
90
views
Content slot border not highlighted in SmartEdit
We are using the Hybris 2211 version with the Spartacus 6 storefront. We plan to use SmartEdit to easily change components such as banners without going through the back office. The problem is that ...
0
votes
1
answer
123
views
No preview/edit buttons in SmartEdit
We are creating a Spartacus storefront for buyer/seller users. Our users asked if they could use SmartEdit to update our rotating banner component for their promotions. The problem is that I can't see ...
0
votes
0
answers
40
views
Angular Spartacus login page flashes after refresh any page on SSR mode
How to prevent flashing/flickering of login page on every page refresh in Spartacus application in SSR mode.
I tried to
RouterModule.forRoot([], {
initialNavigation: 'enabledBlocking',
}),
but ...
-1
votes
1
answer
48
views
How we can add additional Step 2 as "Billing address" in SAP spartacus storefront
Sap Spartacus OOTB shows Shipping Address | Deliver mode | Payment as checkout steps.
I need guidance on how we can add the Billing Address as Step 2 after the current first Step Shipping Address.
I ...
0
votes
0
answers
36
views
Customise GlobalMessageConfig to remove messge on route change
I am trying to implememt what looks like a very basic requirement in my Spartacus 4.3 where the cx-global-message goes away when user navigates to a new page.
I understand Spartacus provides a default ...
0
votes
0
answers
18
views
Cart delivery address API is failing because Authorisation header is missing
checkoutDeliveryAddressFacade.getDeliveryAddressState() is failing in checkout page in spartacus 6.1 . I am getting 401 (Full authentication is required to access this resource). I don't see ...
0
votes
2
answers
64
views
How to render sitemap.xml in SAP Commerce Spartacus site?
I was wondering if anyone knows how to get the sitemap.xml functionality working in Spartacus site like how it was working in yacceleratorstorefront/sitemap.xml.
Looks like SAP Commerce Support team ...
1
vote
0
answers
125
views
How to replace ModalRef with LaunchDialogService in Composable Storefront
The ModalService, ModalDirective, ModalDirectiveOptions, ModalDirectiveService, ModalOptions and ModalRef have all been removed from composable storefront 5.0. If you are using the ModalService and ...
0
votes
0
answers
22
views
Adding, Modifying and selecting the new state from Spartacus store
Since we are migrating to the Spartacus application. I am trying to use the OOTB Store available.
I have created actions, Reducers, and selectors. But I am unable to connect to the OOTB Spartacus ...
0
votes
0
answers
31
views
Custom Guards only work when used at cmsComponents after Spartacus upgrade from 4.0 to 5.0, but Spartacus still works in Angular Routing
after the Spartacus update from 4.x to 5.0 the custom guards in my project only work if they are in the cmsComponents area. However, Spartacus custom guards still work if you put them in the Angular ...
0
votes
1
answer
179
views
Unable to install latest spartacus 6 version
I am trying to install Spartacus 5 or Spartacus 6 with storefront library as per the documentation but getting error
Unable to fetch package information for '@spartacus/[email protected]': No matching ...
0
votes
0
answers
52
views
Override Spartacus BadRequestHandler interceptor
In a Spartacus 4.2 B2B Storefront Login process, I need to override the function handleBadPassword at the BadRequestHandler interceptor. The reason to that is that i want to intercept an specific ...
0
votes
1
answer
147
views
Stylesheet import error while creating a new Spartacus 6.1 storefront
I am able to successfully install a Spartacus 6.1 storefront but while building, I am getting below error,
I checked the ccss file for any reference error, but it was able to navigate.
./src/styles/...
2
votes
1
answer
113
views
Outlets are duplicated post spartacus upgrade 6.0
We have created our own component for ProductVariantStyleIconsComponent and injected through provideOutlet. It was working fine till version 5.2. Upon spartacus upgrade 6.2 this is duplicated.
@...
0
votes
0
answers
33
views
Spartacus Category Routing using Resolver
Before "ProductListPage" by category is displayed I want to fetch some additional data from backend.
Angular has this route resolver that can be used to do sth before page is loaded.
Is it ...
0
votes
0
answers
30
views
Theme value is not getting applied as a CSS class in the root component of the application. I am using spartacus 5.2
Theme value is not getting applied as a CSS class in the root component of the application. I am using spartacus 5.2. In backoffice we have theme "electronics". As per me it should be added ...
0
votes
0
answers
153
views
Unable to access electronics Spartacus Demo SIte
I am trying to access demo spartacus site, I can see the login page but i am not able to login or register.
import { NgModule } from '@angular/core';
import { translationChunksConfig, translations } ...
1
vote
1
answer
220
views
Spartacus 4.3 - How to map new custom CMS component from Hybris?
I'm working with Hybris 2205 and Spartacus 4.3.8, I created a new ItemType in Hybris (back-end) and inserted a new object/instance (Item) of that ItemType right into the database by using Impex, doing ...
0
votes
1
answer
202
views
Unable to add Spartacus to Angular Application
Unable to fetch package information for '@spartacus/[email protected]': No matching version found for @spartacus/[email protected].
I tried to run the command:
ng add @spartacus/[email protected]
The ...
1
vote
1
answer
31
views
How to override 'cxTranslate' pipe
Is it possible to override 'cxTranslate' pipe and add some custome behaviour for it?
Can somebody guide how to do it?
0
votes
0
answers
89
views
Smartedit not working with Spartacus in ccv2
Smartedit stop to work with Spartacus at CCv2 environments.
If I try to load Spartacus storefront in response I can see next headers:
X-Frame-Options: DENY
X-Powered-By: Express
Before everything ...
0
votes
0
answers
36
views
Spartacus SERVER_REQUEST_ORIGIN resolves wrong protocol in SSR
We have an issue with the wrong protocol detection in the next configuration:
The Spartacus application is running inside a Docker container.
We use Google Cloud and Kubernetes.
The Spartacus ...
0
votes
0
answers
18
views
Forms and routing in Spartacus
In spartacus page I need to create one form which takes firstName, lastName and Description and has submit button. After giving input clicking on submit it should route to different link and show the ...
0
votes
0
answers
78
views
Enabling Smartedit from Spartacus storefront vs Hybris Smartedit, what's the difference?
I have Spartacus storefront, and have followed all the steps from this document https://sap.github.io/spartacus-docs/2.x/smartEdit-setup-instructions-for-spartacus/
But I also have SAP smartedit which ...
0
votes
0
answers
36
views
Spartacus NavigationUIComponent - cx-navigation-ui cx-icon disappears on and o
Dropdown icon disappears on and off after clicking on view order history. I am thinking the issue could be from cx-navigation-ui (out-of-the-box code).
<cx-navigation-ui
[ngClass]="(...
0
votes
0
answers
85
views
Composable Storefront (Spartacus) version 5 and TELCO
I'm helping the Spartacus upgrade to version 5.x, but the store is using the Telco library (tua-sap). We were able to upgrade the Composable Storefront to version 5 but we couldn't figure out how to ...
0
votes
0
answers
11
views
Missing Public API: visual-picking-tab.service.ts
In the course of an EPD integration into our project, we have now encountered an error, which unfortunately cannot be fixed by us. The "Visual-picking-tab.service.ts" is not available in the ...
0
votes
1
answer
228
views
Add to cart customisation
I have a requirement where Add to cart module should cater to additional parameters which are setup in my product model. The Product Display Page captures these additional attributes which needs to be ...
0
votes
0
answers
51
views
How to create custom connector in Spartacus store front
how can i able to connect some of the other CMS AEM in Spartacus store front
https://sap.github.io/spartacus-docs/connecting-to-other-systems/
goes through the document
kindly provide the sample code
0
votes
0
answers
197
views
Missing Perspective Toolbar in SmartEdit in SPARTACUS 5.2 Version
I am trying to setup SmartEdit with SPARTACUS 5.2, I tried following the document in the SAP Help Portal > SAP Commerce Cloud, composable storefront > Integrations > SmartEdit > ...
1
vote
0
answers
30
views
How Spartacus avoid loading of library specific services in main bundle?
I am new to Spartacus(4.0.0). I don't understand how Spartacus loading the singleton services in lazy loaded modules without injecting them into root. I read many articles about lazy loading. I did ...
0
votes
0
answers
80
views
Customer user session lost in ASM after page refresh in spartacus 4.3.x
I logged in as Admin user for ASM. My team is using SSO for login into ASM. After that I searched for a customer and started its session. Now after I refresh the page, the customer is logged out. The ...
0
votes
1
answer
98
views
SSR only rendering home page, but not the other pages
I am having trouble with SSR and was wondering if someone can give me some tips as to where to look for fixing my issue. I have installed SSR, but whenever I refresh the page (regardless of the page I ...