Skip to content

Is there a way to call shopware 6 layout on checkout pages? #381

Closed Answered by BrocksiNet
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @junaidfar00qui, and thx for this question.

It is true that you can not assign a layout to these pages (Cart/Checkout). But you can always load any CMS page via store API. You must create the page via Admin first and after that use the hard-coded UUID inside the Request. After that, you can use the data from JSON to create whatever you need or pass the data to existing components. The main issue here is that the UUID can be different depending on instances and it feels haky to have hardcoded UUID.

More complex way:
You can search for the CMS page with some admin API request, like POST /api/search/cms-page for example. To do this you could use the new API client (see section about Admi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BrocksiNet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant