cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Composable 2211.19 ProductListComponentService model$ search api not trigger in PLP page

cliff_g
Discoverer
0 Kudos
 

We're in the process of upgrading our SAP Composable storefront to version 2211.19. However, we've encountered an issue where the model$ from ProductListComponentService in OOTB is not triggering the search API on the PLP page. This functionality worked correctly in SAP Composable 6.8. Any insights on why this might be happening and how to address it would be appreciated. Thank you.

 

cliff_g_0-1713325207255.png

 

View Entire Topic
samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @cliff_g ,

I tried it on my end, and it worked fine for the OOTB PLP pages.

Maybe the customization you did around the product search feature blocked the calls? Did it send the product search OCC API call on the first load of the PLP page? Did you see the products on the PLP page at all? Could you disable the browser cache and try the same again? 

You can debug the Composable Storefront source codes from VS Code and put breakpoints in the  projects/storefrontlib/cms-components/product/product-list/container/product-list-component.service.ts file. For how to read and debug the source code, please refer to the live session Getting started on Composable Storefront Development (fka Spartacus).

cliff_g
Discoverer

Hi @samuelyang

Thank you for providing this information. We've identified both the problem and its solution. Posted the answer above.