How to retrieve the checkout summary "/checkout/summary" via glue

Robson
Robson Posts: 15 πŸ§‘πŸ»β€πŸš€ - Cadet

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
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)
    Answer βœ“

    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

Answers