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..
I assume there is no way to conditionally _completely disable_ a checkout step?
Comments
-
-
let me know if should add anything there
0 -
good for me, optionally you could write a βrealβ example of what you want to do and how the linear way is bad in this case and how dev time the state machine way save you roughly.
0 -
i'd have to excercise my imagination for a good example π
0 -
trivial use case would be having an conditional step which doesn't belong to the normal flow, e.g. pay with amazon pay - where the original payment page / customer and shipping address pages are not required
0 -
thanks anyway, the more real the example are, the more we will be sure that what we will build will hit the mark π―
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
did u already seen the last updates about step-engine? Now u can define also via StepEngineStrategy different strategies according some configuration or quote or customer etc.... maybe can be a solution for u
0 -
so effectively it switches the step collection based on a condition?
0 -
that would also work in this case (not as nice as a state machine though)
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
yes with a state machine will be very nice, but in the case the state machine can decide according some conditions the next step then u don't have any more the basic principe of step-engine.. "A step can be executed only when the previuos steps are correctly already executed"...
In this case the pre-Condition and post-Condition of your steps are very dynamic due not real step defined..
Or i didn t get what is your goal?0 -
not sure - in the case of a state machine (maybe state machine isn't right term - directional step graph maybe π ) you'd say that the machine should be in step X and then traverse the depenencies until that point checking the conditions
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