Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

[FEATURE] Set Session CartContext via order token #704

@franzwilding

Description

@franzwilding

Hey!
I'm evaluating different approaches to include Sylius as a complete-headless or semi-headless e-commerce platform into our technology stack. The "semi-headless" approach would use some of the bigger Sylius SF/Twig frontend modules like the checkout, login, profile etc. while the integration into websites will be done via the API.

One of the user flows works like this:

  1. User creates a new cart and gets it's unique token value
  2. User adds items to this cart by using the token value
  3. User will be redirected to the Sylius checkout page

Is there an already existing way to pass a token value to a special route to set it as the default cart in the user session? I think it would be very easy to create such a controller and set the cart into the cart storage, however I was wondering if there already exists such a functionality and if others would like to have this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions