Skip to main content

Event List

note

Sorting

Events described here are sorted in the same order as emitted by the module.

info

Available since v1.3.7

Quote

simpler_checkout_quote_after_created

Class: Simpler\Checkout\Event\Quote\AfterQuoteCreatedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_quote_before_products_added

Class: Simpler\Checkout\Event\Quote\BeforeProductsAddedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getItems(): Simpler\Checkout\Api\Data\ItemInterface[]

simpler_checkout_quote_after_products_added

Class: Simpler\Checkout\Event\Quote\AfterProductsAddedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getItems(): Simpler\Checkout\Api\Data\ItemInterface[]

simpler_checkout_quote_before_customer_assigned

Class: Simpler\Checkout\Event\Quote\BeforeCustomerAssignedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getCustomer(): Magento\Customer\Api\Data\CustomerInterface
  • getShippingAddress(): Magento\Quote\Api\Data\AddressInterface
  • getBillingAddress(): Magento\Quote\Api\Data\AddressInterface

simpler_checkout_quote_after_customer_assigned

Class: Simpler\Checkout\Event\Quote\AfterCustomerAssignedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getCustomer(): Magento\Customer\Api\Data\CustomerInterface
  • getShippingAddress(): Magento\Quote\Api\Data\AddressInterface
  • getBillingAddress(): Magento\Quote\Api\Data\AddressInterface

simpler_checkout_quote_before_totals_collected

Class: Simpler\Checkout\Event\Quote\BeforeTotalsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_quote_after_totals_collected

Class: Simpler\Checkout\Event\Quote\AfterTotalsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_quote_before_discounts_collected

Class: Simpler\Checkout\Event\Quote\BeforeDiscountsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getSimplerQuote(): Simpler\Checkout\Api\Data\ItemQuoteResponseInterface

simpler_checkout_quote_after_discounts_collected

Class: Simpler\Checkout\Event\Quote\AfterDiscountsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getSimplerQuote(): Simpler\Checkout\Api\Data\ItemQuoteResponseInterface

simpler_checkout_quote_after_shipping_methods_estimated

Class: Simpler\Checkout\Event\Quote\AfterShippingMethodsEstimatedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getShippingMethods(): Magento\Quote\Api\Data\ShippingMethodInterface[]

Submit

simpler_checkout_submit_quote_after_created

Class: Simpler\Checkout\Event\Submit\AfterQuoteCreatedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_submit_quote_before_products_added

Class: Simpler\Checkout\Event\Submit\BeforeProductsAddedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getItems(): Simpler\Checkout\Api\Data\ItemInterface[]

simpler_checkout_submit_quote_after_products_added

Class: Simpler\Checkout\Event\Submit\AfterProductsAddedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getItems(): Simpler\Checkout\Api\Data\ItemInterface[]

simpler_checkout_submit_quote_before_customer_assigned

Class: Simpler\Checkout\Event\Submit\BeforeCustomerAssignedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getCustomer(): ?Magento\Customer\Api\Data\CustomerInterface
  • getShippingAddress(): Magento\Quote\Api\Data\AddressInterface
  • getBillingAddress(): Magento\Quote\Api\Data\AddressInterface

simpler_checkout_submit_quote_after_customer_assigned

Class: Simpler\Checkout\Event\Submit\AfterCustomerAssignedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getCustomer(): ?Magento\Customer\Api\Data\CustomerInterface
  • getShippingAddress(): Magento\Quote\Api\Data\AddressInterface
  • getBillingAddress(): Magento\Quote\Api\Data\AddressInterface

simpler_checkout_submit_quote_after_shipping_method_added

Class: Simpler\Checkout\Event\Submit\AfterShippingMethodAddedEvent

  • getQuote(): Magento\Quote\Model\Quote
  • getPickupStoreId(): ?string
  • getShippingMethod(): ?string

simpler_checkout_submit_quote_before_totals_collected

Class: Simpler\Checkout\Event\Submit\BeforeTotalsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_submit_quote_after_totals_collected

Class: Simpler\Checkout\Event\Submit\AfterTotalsCollectedEvent

  • getQuote(): Magento\Quote\Model\Quote

simpler_checkout_submit_after_order_created

Class: Simpler\Checkout\Event\Submit\AfterOrderCreatedEvent

  • getOrder(): Magento\Sales\Api\Data\OrderInterface

simpler_checkout_submit_after_order_note_created

Class: Simpler\Checkout\Event\Submit\AfterOrderNoteCreatedEvent

  • getOrder(): Magento\Sales\Api\Data\OrderInterface
  • getNote(): string

simpler_checkout_submit_after_customer_invoice_created

Class: Simpler\Checkout\Event\Submit\AfterCustomerInvoiceCreated

  • getOrder(): Magento\Sales\Api\Data\OrderInterface
  • getInvoice(): Simpler\Checkout\Api\Data\OrderInvoiceInterface

Products

simpler_checkout_quote_after_products_added

Class: Simpler\Checkout\Event\Products\AfterProductsAddedEvent

  • getResponse(): Simpler\Checkout\Api\Data\ProductsResponseInterface
  • setResponse(ProductsResponseInterface $response)

General

simpler_checkout_pickup_locations_requested

Class: Simpler\Checkout\Event\PickupLocationsRequestedEvent

  • getPickupLocations(): Simpler\Checkout\Api\Data\PickupLocationsInterface

Architecture

Every custom event described above is represented by a companion class in the module.

For example, simpler_checkout_quote_after_created event is encapsulated by AfterQuoteCreatedEvent class.

When handling an event from your Observer, you have access to the event's class getters, allowing you to quickly identify each event's attributes without having to consolidate the docs.

Usage

After creating an observer as described in the Magento docs you can resolve the underlying event class like this

<?php

namespace MyVendor\MyModule\Observer;

use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Simpler\Checkout\Event\Quote\AfterQuoteCreatedEvent;
use Simpler\Checkout\Event\Event;

class MyObserver implements ObserverInterface
{
public function execute(Observer $observer)
{
/** @var AfterQuoteCreatedEvent $event */
$event = $observer->getData(Event::KEY);

$event->getQuote();
}
}