How to retrieve the checkout summary "/checkout/summary" via glue
I'm trying to find a way how to get the cart summary overview "/checkout/summary" via glue.
Art their any endpoints?
Best Answer
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
Heyhey @Robson ,
I also dont find an ootb-solution to your question. In theory the quote data should be managed by the frontend. This does not work out for some more business use-cases, for example if you use Yves and Glue in parallel (i bet there are many other use-cases where your request would be handy).
When I look into the
spy_quote
table I see shipping-address data attached to the item (because you can ship one part to address A and another part to address B). So the data itself is there.
So I see 3 ways of how I could imagine tackling it:- A.: Create a complete own checkout/summary glue endpoint
- B.: Adjust the items include functionality to also include the shipping-address of the items
- C.: Add another include to show a shipping-address based on the shipping addresses of the items.
Hope this helps at least a bit.
All the best,
Florian
0
Answers
-
I think you're looking for the /carts/ endpoint maybe?
It's not from the glue-storefront application, not sure if we have a list of those endpoints yet.
0 -
Hello @victor.vanherpt,
but in the include of the carts endpoint their is not a address to receive from the customer.
I've to make a second call to the customer endpoint.
0 -
I'm not that aquatinted with the Spryker glue endpoints yet, but if the info is not available there, either do a second call (as you mention) or extend the module that is in charge of returning the values, so you can include what you need.
see maybe?0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
Heyhey @Robson ,
I also dont find an ootb-solution to your question. In theory the quote data should be managed by the frontend. This does not work out for some more business use-cases, for example if you use Yves and Glue in parallel (i bet there are many other use-cases where your request would be handy).
When I look into the
spy_quote
table I see shipping-address data attached to the item (because you can ship one part to address A and another part to address B). So the data itself is there.
So I see 3 ways of how I could imagine tackling it:- A.: Create a complete own checkout/summary glue endpoint
- B.: Adjust the items include functionality to also include the shipping-address of the items
- C.: Add another include to show a shipping-address based on the shipping addresses of the items.
Hope this helps at least a bit.
All the best,
Florian
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 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
- 68 Spryker Safari Questions
- 50 Random