Very often in several business scenarios it is required to share direct Urls of order, cart or product with internal teams, e.g.:
After order is placed:
- Send confirmation email to customer.
- Also send email to a team of internal staff with direct URL of that order so that staff can directly go to that specific order just by clicking on URL rather than logging into cockpit and searching for that order.
Considering different nature of cockpit framework it’s not straight to create direct URL of an item as compared to storefront which is MVC.
Here is solution:
A request event handler parses request parameters and dispatches a Cockpit business event. Different components are then notified of this dispatched event.
According to above URL, Activation request events is triggered for order item with pk – 8796093055021