Event List
Sorting
Events described here are sorted in the same order as emitted by the module.
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\QuotegetItems():
Simpler\Checkout\Api\Data\ItemInterface[]
simpler_checkout_quote_after_products_added
Class: Simpler\Checkout\Event\Quote\AfterProductsAddedEvent
getQuote():
Magento\Quote\Model\QuotegetItems():
Simpler\Checkout\Api\Data\ItemInterface[]
simpler_checkout_quote_before_customer_assigned
Class: Simpler\Checkout\Event\Quote\BeforeCustomerAssignedEvent
getQuote():
Magento\Quote\Model\QuotegetCustomer():
Magento\Customer\Api\Data\CustomerInterfacegetShippingAddress():
Magento\Quote\Api\Data\AddressInterfacegetBillingAddress():
Magento\Quote\Api\Data\AddressInterface
simpler_checkout_quote_after_customer_assigned
Class: Simpler\Checkout\Event\Quote\AfterCustomerAssignedEvent
getQuote():
Magento\Quote\Model\QuotegetCustomer():
Magento\Customer\Api\Data\CustomerInterfacegetShippingAddress():
Magento\Quote\Api\Data\AddressInterfacegetBillingAddress():
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\QuotegetSimplerQuote():
Simpler\Checkout\Api\Data\ItemQuoteResponseInterface
simpler_checkout_quote_after_discounts_collected
Class: Simpler\Checkout\Event\Quote\AfterDiscountsCollectedEvent
getQuote():
Magento\Quote\Model\QuotegetSimplerQuote():
Simpler\Checkout\Api\Data\ItemQuoteResponseInterface
simpler_checkout_quote_after_shipping_methods_estimated
Class: Simpler\Checkout\Event\Quote\AfterShippingMethodsEstimatedEvent
getQuote():
Magento\Quote\Model\QuotegetShippingMethods():
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\QuotegetItems():
Simpler\Checkout\Api\Data\ItemInterface[]
simpler_checkout_submit_quote_after_products_added
Class: Simpler\Checkout\Event\Submit\AfterProductsAddedEvent
getQuote():
Magento\Quote\Model\QuotegetItems():
Simpler\Checkout\Api\Data\ItemInterface[]
simpler_checkout_submit_quote_before_customer_assigned
Class: Simpler\Checkout\Event\Submit\BeforeCustomerAssignedEvent
getQuote():
Magento\Quote\Model\QuotegetCustomer():
?Magento\Customer\Api\Data\CustomerInterfacegetShippingAddress():
Magento\Quote\Api\Data\AddressInterfacegetBillingAddress():
Magento\Quote\Api\Data\AddressInterface
simpler_checkout_submit_quote_after_customer_assigned
Class: Simpler\Checkout\Event\Submit\AfterCustomerAssignedEvent
getQuote():
Magento\Quote\Model\QuotegetCustomer():
?Magento\Customer\Api\Data\CustomerInterfacegetShippingAddress():
Magento\Quote\Api\Data\AddressInterfacegetBillingAddress():
Magento\Quote\Api\Data\AddressInterface
simpler_checkout_submit_quote_after_shipping_method_added
Class: Simpler\Checkout\Event\Submit\AfterShippingMethodAddedEvent
getQuote():
Magento\Quote\Model\QuotegetPickupStoreId():
?stringgetShippingMethod():
?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\OrderInterfacegetNote():
string
simpler_checkout_submit_after_customer_invoice_created
Class: Simpler\Checkout\Event\Submit\AfterCustomerInvoiceCreated
getOrder():
Magento\Sales\Api\Data\OrderInterfacegetInvoice():
Simpler\Checkout\Api\Data\OrderInvoiceInterface
Products
simpler_checkout_quote_after_products_added
Class: Simpler\Checkout\Event\Products\AfterProductsAddedEvent
getResponse():
Simpler\Checkout\Api\Data\ProductsResponseInterfacesetResponse(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();
}
}