What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi everyone, Currently in the b2b-demo-app, is there a way to get price as a filter option? I see we
Hi everyone,
Currently in the b2b-demo-app, is there a way to get price as a filter option? I see we get labels, brands and other attributes which are set as super attribute on category filter. However I was wondering how would we get a price range filter through catalog-search
glue api.
Any pointers would be highly appreciated.
Comments
-
I'm not sure if it's correct but seems to work somehow. π
https://glue.de.b2c.demo-spryker.com/catalog-search?q=&price%5Bmin%5D=902&price%5Bmax%5D=1864"rangeFacets": [ { "name": "price-DEFAULT-EUR-GROSS_MODE", "localizedName": "Preis", "min": 0, "max": 345699, "activeMin": 90200, "activeMax": 186400, "docCount": null, "config": { "parameterName": "price", "isMultiValued": false } },
0 -
thanks Valerii. Iβm referring to the b2b-demo-app
0 -
i think thatβs where I dont see it π
0 -
Confirm, some plugin is missing then.
0 -
yea I think itβs just a missing plugin. could you point me in the right direction? thanks
0 -
Ah, I think I know the reason. Prices are hidden for not logged in customers. Have you tried to run same request with authorization token?
0 -
I just tried it but still get rating in rangeFacets
"rangeFacets": [ { "name": "rating", "localizedName": "Product Ratings", "min": 4, "max": 4, "activeMin": 4, "activeMax": 4, "docCount": null, "config": { "parameterName": "rating", "isMultiValued": false } } ]
0 -
Iβm using this url:
https://glue.de.b2b.demo-spryker.com/catalog-search?q=&price%5Bmin%5D=902&price%5Bmax%5D=1864And i generated a token using POST https://glue.de.b2b.demo-spryker.com/access-token
0 -
But I think youre right. I see that in the b2c app I see price filters:
https://www.de.b2c.demo-spryker.com/en/computers
But in b2b theyrβe not added by default.
https://www.de.b2b.demo-spryker.com/en/stationeryWhere can I find more information to enable price filters?
0 -
Sorry, was wrong. Price filter is absent in b2b demo shop even for logged in users. Checking if this something that could be added in Zed then.
0 -
Nope. So will ask internally. π
0 -
thanks Valerii π
0 -
Ok, got internal feedback that price range filters are not supported in b2b at all, only in b2c.
0 -
Thatβs a shame Valerii. So what do we do if we need to pull in price range filters in the b2b app?
0 -
With b2b you have individual prices per customer and you actually load them when you get results from ES. In this scenario you can't have prices in ES and therefore you can't filter. At least not out of the box.
0 -
Thanks @UKHD8KTMF. But then we cannot have filters as we will only be fetching prices for a specific number of results
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random