Streamlining Event Order in Drupal's Commerce Core

online shopping concept for landing page
Freepik

Bidding to enhance the consistency of the Commerce Core in Drupal, a recent development has been initiated by Ryan Szrama. The task revolves around the dispatching of the ORDER_PAID event concerning free orders when the OrderStorage is destroyed. Currently, Commerce Core exhibits inconsistencies in dispatching the commerce_order.order.paid event, creating a variance in the sequence of events for free versus paid orders during the checkout process. This disparity can pose challenges for subscribers of the order-paid event, particularly in scenarios where sites have a mix of free and paid orders.

To address this, the proposal suggests implementing a solution that involves using a destructor and introducing an updated list of order IDs to OrderStorage. This adjustment aims to synchronize the execution of events for paid orders, bringing uniformity to the order of events triggered during the checkout process. While the proposed change is designed to enhance the overall reliability of Commerce Core, considerations are being made regarding its implementation in a minor release, ensuring compatibility and stability across Drupal installations.

The development underscores the commitment to refining Drupal's e-commerce capabilities and delivering a seamless experience for users managing both free and paid orders within the platform. As the Drupal community collaborates on this initiative, the focus remains on maintaining the integrity and reliability of the Commerce Core. Learn more here.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please let us know in the comments below and we will try to address the issue as best we can.

Advertisement Here

Upcoming Events

Latest Opportunities

Advertisement Here