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'm looking for a way to hook up into the order lifecycle. I'm particularly interested on when the o
I'm looking for a way to hook up into the order lifecycle. I'm particularly interested on when the order is placed, paid, fulfilled or cancelled. It would also be good to subscribe to payments and refunds. I've been looking into the docs and the code but I don't seem to find anything. Could anyone point me to the list of events in the code or some relevant documentation? I'd greatly appreciate it. π
Comments
-
In Spryker we have a dedicated section for this, itβs called OMS. Maybe this can help you? https://docs.spryker.com/docs/scos/dev/back-end-development/data-manipulation/create-an-order-management-system-spryker-commerce-os.html#chal[β¦]tion
0 -
Thanks @U015S0C0V29. I assume there is a default OMS implementation for the demo store. Where could I find that xml?
0 -
Thatβs right. Look for example if you have a:
config/Zed/oms/TestOrderPayment01.xml
this is the state machine with the flow of an order with that payment method.If you look in your
config_default.php
you will luckily find the mapping between a payment method to the right OMS state machine version attached to it. eg:$config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ TestOrderPaymentConstants::METHOD => 'TestOrderPayment01', // ... ];
0 -
Cheers Chema! Much appreciated!
0 -
I guess now looking in the commands under
Oms
I could see what events they fire?0 -
Yes, exactly in that oms yaml files you will find which commands/conditions are being trigger, and you can subscribe to any of them and do whatever you want between those transitions. This is a pretty complex area, but I think this is an easy way to start looking at it π
0 -
Yeah, I have not touched this part of Spryker yet, so I'm in for a fun weekend π
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