Use the spartacus-storefront tag for questions related to the SAP Commerce "Project Spartacus" storefront (see https://github.com/SAP/cloud-commerce-spartacus-storefront)
Questions tagged [spartacus-storefront]
664 questions
7
votes
2 answers
Can I use react with @spartacus framework?
My question is, can I use the react framework with @spartacus storefront? this is because our frontend application is developed in React and we want to use @Spartacus storefront to leverage advantages like decoupling front-end and Hybris build…

Chiru P
- 73
- 4
6
votes
2 answers
Spartacus CCv2 Build process for multiple enviroments
We're currently setting up a Spartacus application running on CCv2 with three different enviroments (dev, stage, prod).
We are struggling to set the right OCC API Urls, within Spartacus, for the enviroment, I guess the way to go are enviroment…

Adrian Fella
- 190
- 6
5
votes
1 answer
Integrating customised APIs in Spartacus Storefront
our Hybris instance has some custom REST APIs, for example the addEntry. This version of the API requires an extra boolean parameter in the payload, let's call it fooBar.
Here’s an example of payload:
{"quantity": 1, "product": {"code": "1234567"},…

Filippo Grecchi
- 51
- 3
4
votes
1 answer
SAP Spartacus OccStoreFinderAdapter override
Is there any way to override OccStoreFinderAdapter class in SAP Spartacus v3.x+? What I have already tried is to add a custom provider in store-finder-feature.module.ts like this
{
provide: OccStoreFinderAdapter,
useClass:…

Piotr Dziwoki
- 41
- 2
4
votes
1 answer
How can I use Type Augmentation in Spartacus 2.1?
The spartacus documentation about Module/type augmentation says it's supported in spartacus 2.1.
https://sap.github.io/spartacus-docs/type-augmentation/#page-title
But when I try to extend the ConsentTemplate interface
import { ConsentTemplate }…

Rune Claeys
- 41
- 1
4
votes
3 answers
Extend Spartacus NGRX Store with additional data
For our Spartacus project, we need to introduce additional Data properties in the checkout:
We have the case, that the user needs to select a delivery mode per product.
In an ideal world, upon selection, the selected delivery mode would be saved in…

user2477219
- 153
- 1
- 1
- 8
4
votes
1 answer
How to add my custom page resolver instead of Spartacus page resolver?
I'm adding my resolver (which extended from PageMetaResolver) into providers in my own home.module. However, my method 'resolve' is not called. Have you got any ideas?
@Injectable({
providedIn: 'root'
})
export class HomePageMetaResolver extends…

Denis Bochkov
- 51
- 3
3
votes
1 answer
SAP Spartacus - single Spartacus application for multiple web stores
How to set up a single Spartacus application to run several different web stores against a single BA Hybris (several Base Stores).
We need to ensure that the user sessions are not mixing.
What would be the configuration for the Spartacus and what…

Virto111
- 577
- 4
- 20
3
votes
2 answers
Hybris - checkout - object no longer valid error
For some unknown reason, during the checkout flow a global message error appears saying Item no longer valid (was removed) - Object no longer valid
when we check its the item is a cart entry which is no longer valid
we found a similar issue raised…

user1606761
- 105
- 11
3
votes
2 answers
Unable to add items to cart - UnAuthorized access
Trying to setup local spartacus with 2011 Commerce Cloud and spartacussampledata. Few restful endpoints are throwing 401 unauthorized access. Followed this link for setup:…

Irus
- 81
- 7
3
votes
2 answers
getting error cx-storefront is not known element Spartacus Angular storefront in SAP Hybris
ERROR in 'cx-storefront' is not a known element:
If 'cx-storefront' is an Angular component, then verify that it is part of this module.
If 'cx-storefront' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this…

Gokul Pandey
- 171
- 1
- 6
3
votes
2 answers
SPARTACUS customization of SearchboxComponent service
Problem: I am working on a custom search box configuration, as our search API endpoint requires 3 additional parameters. The endpoint should be called with dynamic…

Nagaprasad Vendra
- 33
- 3
3
votes
4 answers
Where to specify the path for Extension 'spartacussampledataaddon'
I following the instruction at https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/
Step 1: completed successful
Step 2: Build and initialize the new recipe
At this step I have got an error. Where I have to specify path for the…

Jegors Čemisovs
- 608
- 6
- 14
3
votes
1 answer
SmartEdit setup in spartacus
I am trying to setup SmartEdit in our spartacusstorefront. We use a customized extension which is based on spartacussampledataaddon.
Followed in the instructions in: …

Mahesh
- 954
- 8
- 18
3
votes
2 answers
Spartacus - Retrieving data from custom CMS component
In SAP Commerce I prepared custom CMS component. I put it in right slot. Spartacus receive information about it - I can see that this component is in the right place on the page. But how can I retrieve some data from this component. In response in…

gerwaz
- 83
- 1
- 10