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)
spartacus-storefront
689
questions
0
votes
0
answers
17
views
How to expose APIs from occ extension into custom commerce web services?
I have custom commerce webservices extension say "mycommercewebservices" with webroot of "/rest". Now, I want to include APIs from commerce OCC extension (say b2bocc, ...
0
votes
1
answer
11
views
Product Configurator - Unable to use / customise ConfiguratorTextfieldService
We are using text field configurator library in our project. I am trying to use ConfiguratorTextfieldService in my component. But it has some import issue.
constructor(
private ...
0
votes
0
answers
44
views
Why ant addoninstall command is breaking Swagger/OCC?
We have recently encountered an issue with SAP Composable Storefront on our developers' localhost systems where after running the ant addoninstall command and then 'ant clean all', it is corrupting ...
0
votes
0
answers
33
views
SAP Spartacus 2211: Override OccCartAdapter to add extra params to /email query
In SAP Spartacus 2211, I need to add 2 more params to the request that adds a guest customer to the backend. The endpoint is called addEmail:
addEmail: 'users/${userId}/carts/${cartId}/email'
Which is ...
1
vote
1
answer
39
views
Refactor Nested Subscriptions properly for Event Listening
I have a special situation where the usual usage of "switchMap" to avoid nested subscriptions just doesn't cut it.
I discovered this code, that uses nested subscriptions, and wanted to ...
0
votes
1
answer
63
views
SAP Spartacus Storefront 2211 - how to override PDP pickup options and preselect store
I am using SAP Composable Storefront Spartacus 2211
In PDP, I need to
1- Hide the "Ship it" pickup option
2- Preselect the "Free pickup in store" as it should be the only option ...
0
votes
1
answer
37
views
How to override a component which is referred in outlet. Example, How to override CartItemListComponent which is used as outlet
We want to define new design for cart cart entries in checkout and order page. For this we want to override CartItemListComponent shipped OOTB of spartacus. How can we do that?
I tried overriding this ...
0
votes
1
answer
57
views
Add " - Company Name" suffix to PageMetaResolver titles
I'm working with SAP Spartacus/Composable Storefront 6.7, and getting some issues about page titles.
On my backoffice, I've configured all page titles, but I need to add " - Company Name" as ...
0
votes
1
answer
28
views
How to change facet top visible value 6 to 5 in the composable storefront
Currently in search list page Facet showing 6 value is visible I want to change it 6 to 5. How to configure the default value in composable storefront.
DEFAULT_TOP_VALUES
Need to change value the ...
1
vote
2
answers
59
views
Angular export const is not storing the right object
I am facing a weird issue in my Angular project. I am storing few configurations in environment files and exporting the constants for other modules to consume in the project. However, when I am ...
1
vote
1
answer
47
views
Observable not updated IF empty
I came across this strange behavior by the rxjs-"filter".
Environment:
SAP ComposableStorefront / Spartacus "~2211.21.0"
angular 17.2.0
I'M on a product Detail Page and apply a ...
1
vote
1
answer
30
views
Component automatically turns invisible upon creation
Relevant issue: https://github.com/SAP/spartacus/issues/17352
When I was trying to add PDF or Video or Image component to a slot that accepts them, the component automatically turns hidden even if I ...
0
votes
0
answers
47
views
Dynamic URL pattern for CategoryPage in SAP Spartacus 4.x
I'm working in Spartacus and I want to add dynamic params in CategoryPage URL.
Say my current categoryPage URL looks like: http://server.com/categories/ballpens which I want to change to http://server....
0
votes
0
answers
36
views
Getting 403 forbidden error when we chosen the customer once asagent is logged in Spartacus ASM module
Getting 403 forbidden error when we chosen the customer once asagent is logged in Spartacus ASM module.
{
"errors" : [ {
"message" : "Access is denied",
"type" :...
0
votes
0
answers
50
views
How do I use angular-oauth2-oidc library in spartacus SSR mode?
We have enabled SSR and BFF pattern implemented between our storefront and SAPCC. So all our Occ requests goes through our BFF. We have implemented the whole authentication on server.ts (Express) file....