forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Events
Alexandre Bacco edited this page Jan 30, 2014
·
7 revisions
-
OrderCurrencyListener::processOrderCurrency-
Order::setCurrency(CurrencyContext::getCurrency()): set the Currency (from the context) to the Order (from the event)
-
-
OrderUserListener::setOrderUser-
Order::setUser(User): set the current user (from the context) to the current Order (from the event)
-
-
RefreshCartListener::refreshCart(priority 255)-
Order:calculateTotal: refreshes the order
-
-
OrderTaxationListener::applyTaxes-
TaxationProcessor::applyTaxes: matches the tax zone with shipping address if any, and handle TaxAdjustments -
Order::calculateTotal: refreshes the order
-
-
OrderPromotionListener::processOrderPromotion(priority -50)-
PromotionProcessor::process(Order): reverts all already applied promotions, and then apply eligible promotions -
Order::calculateTotal: refreshes the order
-
-
OrderInventoryListener::createInventoryUnits(priority -100)-
InventoryHandler::processInventoryUnits: creates inventory units according to order items, with statein_cart
-
-
OrderUserListener::setOrderUser-
Order::setUser(User): set the current user (from the context) to the current Order (from the event)
-
-
OrderTaxation::applyTaxes(idem as for event Cart Change)-
TaxationProcessor::applyTaxes: matches the tax zone with shipping address if any, and handle TaxAdjustments
-
-
OrderPromotionListener::processOrderPromotion(idem as for event Cart Change)-
PromotionProcessor::process(Order): reverts all already applied promotions, and then apply eligible promotions -
Order::calculateTotal: refreshes the order
-
-
RestrictedZoneListener::handleRestrictedZone: remove products restricted regarding the current address *
-
OrderShippingListener::processOrderShipments-
ShipmentFactory::createShipment(Order): Create a shipment based on inventory units if it doesn't already exist
-
-
OrderShippingListener::processOrderShippingCharges-
ShippingProcessor::applyShippingCharges(Order): Delete and add all shipping adjustments
-
-
OrderInventory::updateInventoryUnits-
InventoryHandler::updateInventory(Order): change inventory units state tosoldand decrease stock (viaInventoryOperator::decrease)
-
-
OrderStateListener::resolveOrderStates-
StateResolver::resolvePaymentState(Order): define order PaymentState according to payment state -
StateResolver::resolveShippingState(Order): define order ShippingState according to shipment states
-
-
OrderConfirmationEmailListener::processOrderConfirmation-
Mailer::sendOrderConfirmation(Order): send order confirmation email to user
-
-
OrderPaymentListener::processOrderPayment-
PaymentProcessor::createPayment(Order): create the Payment and attach to Order
-
-
CouponUsageListener::handleCouponUsage-
Order::getPromotionCoupon()::incrementUsed(): increment the usage number of the attached coupon
-
-
OrderNumberListener::generateOrderNumber(priority 10)-
OrderNumberGenerator::generate(Order): generate and assign a unique number to the Order
-
-
CompleteOrderListener::completeOrder-
Order::complete(): completes Order
-
-
OrderPaymentListener::updateOrderOnPayment- Dispatch event
sylius.order.pre_payis payment if completed
- Dispatch event
-
OrderShippingListener::processShipmentStates-
ShipmentFactory::updateShipmentStates(Order): update shipment states fromcheckouttoready
-