|
|
2 år sedan | |
|---|---|---|
| .. | ||
| Api | 2 år sedan | |
| Model | 2 år sedan | |
| Observer | 2 år sedan | |
| Plugin | 2 år sedan | |
| Setup | 2 år sedan | |
| Test | 2 år sedan | |
| etc | 2 år sedan | |
| i18n | 2 år sedan | |
| LICENSE.txt | 2 år sedan | |
| LICENSE_AFL.txt | 2 år sedan | |
| README.md | 2 år sedan | |
| composer.json | 2 år sedan | |
| registration.php | 2 år sedan | |
This module provides customer cart management functionality.
The Magento_Quote module is one of the base Magento 2 modules. You cannot disable or uninstall this module.
The Magento_Quote module creates the following table in the database:
quotequote_addressquote_itemquote_address_itemquote_item_optionquote_paymentquote_shipping_ratequote_id_maskFor information about a module installation in Magento 2, see Enable or disable modules.
Extension developers can interact with the Magento_Quote module. For more information about the Magento extension mechanism, see Magento plug-ins.
The Magento dependency injection mechanism enables you to override the functionality of the Magento_Quote module.
The module dispatches the following events:
sales_quote_address_collection_load_after event in the \Magento\Quote\Model\ResourceModel\Quote\Address\Collection::_afterLoad method. Parameters:
quote_address_collection is a $this object (Magento\Quote\Model\ResourceModel\Quote\Address\Collection class)items_additional_data event in the \Magento\Quote\Model\Cart\Totals\ItemConverter::modelToDataObject method. Parameters:
item is a quote_item object (\Magento\Quote\Model\Quote\Item class)sales_quote_remove_item event in the \Magento\Quote\Model\Quote::removeItem method. Parameters:
quote_item is a quote_item object (\Magento\Quote\Model\Quote\Item class)sales_quote_add_item event in the \Magento\Quote\Model\Quote::addItem method. Parameters:
quote_item is a quote_item object (\Magento\Quote\Model\Quote\Item class)sales_quote_product_add_after event in the \Magento\Quote\Model\Quote::addProduct method. Parameters:
items is an array with quot_item objects (\Magento\Quote\Model\Quote\Item class)sales_quote_merge_before event in the \Magento\Quote\Model\Quote::merge method. Parameters:
quote is a $this object (\Magento\Quote\Model\Quote class)source is a quote object (\Magento\Quote\Model\Quote class)sales_quote_merge_after event in the \Magento\Quote\Model\Quote::merge method. Parameters:
quote is a $this object (\Magento\Quote\Model\Quote class)source is a quote object (\Magento\Quote\Model\Quote class)sales_convert_quote_to_order event in the \Magento\Quote\Model\Quote\Address\ToOrder::convert method. Parameters:
order is an order object (\Magento\Sales\Model\Order class)quote is a quote object (\Magento\Quote\Model\Quote class)sales_quote_item_qty_set_after event in the \Magento\Quote\Model\Quote\Item::setQty method. Parameters:
item is a $this object (\Magento\Quote\Model\Quote\Item class)sales_quote_item_set_product event in the \Magento\Quote\Model\Quote\Item::setProduct method. Parameters:
product is a product object (\Magento\Catalog\Model\Product class)quote_item is a $this object (\Magento\Quote\Model\Quote\Item class)sales_quote_payment_import_data_before event in the \Magento\Quote\Model\Quote\Payment::importData method. Parameters:
payment is a $this object (\Magento\Quote\Model\Quote\Payment class)input is a data object (\Magento\Framework\DataObject class)sales_quote_collect_totals_before event in the \Magento\Quote\Model\Quote\TotalsCollector::collect method. Parameters:
quote is a quote object (\Magento\Quote\Model\Quote class)sales_quote_collect_totals_after event in the \Magento\Quote\Model\Quote\TotalsCollector::collect method. Parameters:
quote is a quote object (\Magento\Quote\Model\Quote class)sales_quote_address_collect_totals_before event in the \Magento\Quote\Model\Quote\TotalsCollector::collectAddressTotals method. Parameters:
quote is a quote object (\Magento\Quote\Model\Quote class)shipping_assignment is a shipping_assignment object (\Magento\Quote\Model\ShippingAssignment class)total is a total object (\Magento\Quote\Model\Quote\Address\Total class)sales_quote_address_collect_totals_after event in the \Magento\Quote\Model\Quote\TotalsCollector::collectAddressTotals method. Parameters:
quote is a quote object (\Magento\Quote\Model\Quote class)shipping_assignment is a shipping_assignment object (\Magento\Quote\Model\ShippingAssignment class)total is a total object (\Magento\Quote\Model\Quote\Address\Total class)checkout_submit_before event in the \Magento\Quote\Model\QuoteManagement::placeOrder method. Parameters:
quote is a quote object (\Magento\Quote\Model\Quote class)checkout_submit_all_after event in the \Magento\Quote\Model\QuoteManagement::placeOrder method. Parameters:
order is an order object (\Magento\Sales\Model\Order class)quote is a quote object (\Magento\Quote\Model\Quote class)sales_model_service_quote_submit_before event in the \Magento\Quote\Model\QuoteManagement::submitQuote method. Parameters:
order is an order object (\Magento\Sales\Model\Order class)quote is a quote object (\Magento\Quote\Model\Quote class)sales_model_service_quote_submit_success event in the \Magento\Quote\Model\QuoteManagement::submitQuote method. Parameters:
order is an order object (\Magento\Sales\Model\Order class)quote is a quote object (\Magento\Quote\Model\Quote class)sales_model_service_quote_submit_failure event in the \Magento\Quote\Model\QuoteManagement::rollbackAddresses method. Parameters:
order is an order object (\Magento\Sales\Model\Order class)quote is a quote object (\Magento\Quote\Model\Quote class)exception is an exception object (\Exception class)prepare_catalog_product_collection_prices event in the \Magento\Quote\Model\ResourceModel\Quote\Item\Collection::_assignProducts method. Parameters:
collection is a product collection object (\Magento\Quote\Model\ResourceModel\Quote\Item\Collection class)store_id is a store ID (int type)sales_quote_item_collection_products_after_load event in the \Magento\Quote\Model\QuoteManagement::_assignProducts method. Parameters:
collection is a product collection object (\Magento\Catalog\Model\ResourceModel\Product\Collection class)For information about an event in Magento 2, see Events and observers.
\Magento\Quote\Api\Data\AddressAdditionalDataInterface
\Magento\Quote\Api\Data\AddressInterface
\Magento\Quote\Api\Data\CartInterface
\Magento\Quote\Api\Data\CartItemInterface
\Magento\Quote\Api\Data\CartSearchResultsInterfac
\Magento\Quote\Api\Data\CurrencyInterface
\Magento\Quote\Api\Data\EstimateAddressInterface
\Magento\Quote\Api\Data\PaymentInterface
\Magento\Quote\Api\Data\PaymentMethodInterface
\Magento\Quote\Api\Data\ProductOptionInterface
\Magento\Quote\Api\Data\ShippingAssignmentInterface
\Magento\Quote\Api\Data\ShippingInterface
\Magento\Quote\Api\Data\ShippingMethodInterface
\Magento\Quote\Api\Data\TotalsAdditionalDataInterface
\Magento\Quote\Api\Data\TotalSegmentInterface
\Magento\Quote\Api\Data\TotalsInterfacee
\Magento\Quote\Api\Data\TotalsItemInterface
\Magento\Quote\Api\ChangeQuoteControlInterface
\Magento\Quote\Api\GuestBillingAddressManagementInterface
\Magento\Quote\Api\GuestCartItemRepositoryInterface
\Magento\Quote\Api\GuestCouponManagementInterface
\Magento\Quote\Api\GuestCartManagementInterface
\Magento\Quote\Api\GuestPaymentMethodManagementInterface
\Magento\Quote\Api\GuestShipmentEstimationInterface
\Magento\Quote\Api\GuestShippingMethodManagementInterface
\Magento\Quote\Api\GuestCartRepositoryInterface
\Magento\Quote\Api\GuestCartTotalManagementInterface
\Magento\Quote\Api\GuestCartTotalRepositoryInterface
\Magento\Quote\Model\GuestCart\GuestShippingAddressManagementInterface
\Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface
\Magento\Quote\Api\BillingAddressManagementInterface
\Magento\Quote\Api\CartItemRepositoryInterface
\Magento\Quote\Api\CartManagementInterface
\Magento\Quote\Api\CartRepositoryInterface
\Magento\Quote\Api\CartTotalManagementInterface
\Magento\Quote\Api\CartTotalRepositoryInterface
\Magento\Quote\Api\CouponManagementInterface
\Magento\Quote\Api\PaymentMethodManagementInterface
\Magento\Quote\Api\ShipmentEstimationInterface
\Magento\Quote\Api\ShippingMethodManagementInterface
\Magento\Quote\Model\ShippingAddressManagementInterface
\Magento\Quote\Model\ShippingMethodManagementInterface
\Magento\Quote\Model\Quote\Address\FreeShippingInterface
\Magento\Quote\Model\Quote\Address\RateCollectorInterface
\Magento\Quote\Model\MaskedQuoteIdToQuoteIdInterface
\Magento\Quote\Model\QuoteIdToMaskedQuoteIdInterface
For information about a public API in Magento 2, see Public interfaces & APIs.