PHPackages                             magenxcommerce/module-quote - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. magenxcommerce/module-quote

ActiveMagento2-module

magenxcommerce/module-quote
===========================

N/A

101.2.3(4y ago)022720OSL-3.0PHPPHP ~7.3.0||~7.4.0

Since Oct 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/magenxcommerce/module-quote)[ Packagist](https://packagist.org/packages/magenxcommerce/module-quote)[ RSS](/packages/magenxcommerce-module-quote/feed)WikiDiscussions default Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (65)Used By (20)

Magento\_Quote module
=====================

[](#magento_quote-module)

This module provides customer cart management functionality.

Installation
------------

[](#installation)

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:

- `quote`
- `quote_address`
- `quote_item`
- `quote_address_item`
- `quote_item_option`
- `quote_payment`
- `quote_shipping_rate`
- `quote_id_mask`

For information about a module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html).

Extensibility
-------------

[](#extensibility)

Extension developers can interact with the Magento\_Quote module. For more information about the Magento extension mechanism, see [Magento plug-ins](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html).

[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento\_Quote module.

### Events

[](#events)

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](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/events-and-observers.html#events).

### Public APIs

[](#public-apis)

#### Data

[](#data)

- `\Magento\Quote\Api\Data\AddressAdditionalDataInterface`

    - provides additional data with quote address information
- `\Magento\Quote\Api\Data\AddressInterface`

    - quote address data
- `\Magento\Quote\Api\Data\CartInterface`

    - quote data
- `\Magento\Quote\Api\Data\CartItemInterface`

    - quote item data
- `\Magento\Quote\Api\Data\CartSearchResultsInterfac`

    - quote search result data
- `\Magento\Quote\Api\Data\CurrencyInterface`

    - currency data
- `\Magento\Quote\Api\Data\EstimateAddressInterface`

    - estimate address data
- `\Magento\Quote\Api\Data\PaymentInterface`

    - payment data
- `\Magento\Quote\Api\Data\PaymentMethodInterface`

    - payment method data
- `\Magento\Quote\Api\Data\ProductOptionInterface`

    - product option data
- `\Magento\Quote\Api\Data\ShippingAssignmentInterface`

    - shipping assigment data
- `\Magento\Quote\Api\Data\ShippingInterface`

    - shipping data
- `\Magento\Quote\Api\Data\ShippingMethodInterface`

    - shipping method data
- `\Magento\Quote\Api\Data\TotalsAdditionalDataInterface`

    - provides additional data for totals collection
- `\Magento\Quote\Api\Data\TotalSegmentInterface`

    - total segment data
- `\Magento\Quote\Api\Data\TotalsInterfacee`

    - quote totals data
- `\Magento\Quote\Api\Data\TotalsItemInterface`

    - quote items totals data

#### General

[](#general)

- `\Magento\Quote\Api\ChangeQuoteControlInterface`
    - checks if user is allowed to change the quote

#### Guest

[](#guest)

- `\Magento\Quote\Api\GuestBillingAddressManagementInterface`

    - assigns a specified billing address to a specified quote
    - gets the billing address for a specified quote
- `\Magento\Quote\Api\GuestCartItemRepositoryInterface`

    - gets lists items that are assigned to a specified quote
    - add/update the specified cart guest item
    - removes the specified item from the specified quote
- `\Magento\Quote\Api\GuestCouponManagementInterface`

    - gets coupon for a specified quote by quote ID
    - adds a coupon by code to a specified quote
    - deletes a coupon from a specified quote by quote ID
- `\Magento\Quote\Api\GuestCartManagementInterface`

    - gets list items that are assigned to a specified quote
    - add/update the specified quote item
    - deletes the specified item from the specified quote
- `\Magento\Quote\Api\GuestPaymentMethodManagementInterface`

    - adds a specified payment method to a specified shopping quote
    - gets the payment method for a specified shopping quote
    - gets list available payment methods for a specified shopping quote
- `\Magento\Quote\Api\GuestShipmentEstimationInterface`

    - estimates shipping by address and return list of available shipping methods
- `\Magento\Quote\Api\GuestShippingMethodManagementInterface`

    - gets list applicable shipping methods for a specified quote
    - estimates shipping
- `\Magento\Quote\Api\GuestCartRepositoryInterface`

    - gets quote by quote ID for guest user
- `\Magento\Quote\Api\GuestCartTotalManagementInterface`

    - sets shipping/billing methods and additional data for a quote and collect totals for guest
- `\Magento\Quote\Api\GuestCartTotalRepositoryInterface`

    - gets quote totals by quote ID for guest user
- `\Magento\Quote\Model\GuestCart\GuestShippingAddressManagementInterface`

    - assign a specified shipping address to a specified quote
    - gets the shipping address for a specified quote
- `\Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface`

    - sets the carrier and shipping methods codes for a specified quote
    - gets the selected shipping method for a specified quote

#### Registered customer

[](#registered-customer)

- `\Magento\Quote\Api\BillingAddressManagementInterface`

    - assigns a specified billing address to a specified quote
    - gets the billing address for a specified quote
- `\Magento\Quote\Api\CartItemRepositoryInterface`

    - gets lists items that are assigned to a specified quote
    - add/update the specified quote item
    - removes the specified item from the specified quote
- `\Magento\Quote\Api\CartManagementInterface`

    - creates an empty quote and quote for a guest
    - creates an empty quote and quote for a specified customer if customer does not have a quote yet
    - returns information for the quote for a specified customer
    - assigns a specified customer to a specified shopping quote
    - places an order for a specified quote
- `\Magento\Quote\Api\CartRepositoryInterface`

    - gets quote by quote ID
    - gets list carts that match specified search criteria
    - gets quote by customer ID
    - gets active quote by quote ID
    - gets active quote by customer ID
    - saves quote
    - deletes quote
- `\Magento\Quote\Api\CartTotalManagementInterface`

    - sets shipping/billing methods and additional data for quote and collect totals
- `\Magento\Quote\Api\CartTotalRepositoryInterface`

    - gets quote totals by quote ID
- `\Magento\Quote\Api\CouponManagementInterface`

    - gets coupon for a specified quote by quote ID
    - adds a coupon by code to a specified quote
    - deletes a coupon from a specified quote by quote ID
- `\Magento\Quote\Api\PaymentMethodManagementInterface`

    - adds a specified payment method to a specified shopping quote
    - gets the payment method for a specified shopping quote
    - gets list available payment methods for a specified shopping quote
- `\Magento\Quote\Api\ShipmentEstimationInterface`

    - estimates shipping by address and return list of available shipping methods
- `\Magento\Quote\Api\ShippingMethodManagementInterface`

    - estimates shipping by quote ID an Address
    - estimates shipping by quote ID an address ID
    - get lists applicable shipping methods for a specified quote
- `\Magento\Quote\Model\ShippingAddressManagementInterface`

    - assigns a specified shipping address to a specified quote
    - gets the shipping address for a specified quote
- `\Magento\Quote\Model\ShippingMethodManagementInterface`

    - sets the carrier and shipping methods codes for a specified quote
    - gets the selected shipping method for a specified quote

#### Model

[](#model)

- `\Magento\Quote\Model\Quote\Address\FreeShippingInterface`

    - checks if is a free shipping
- `\Magento\Quote\Model\Quote\Address\RateCollectorInterface`

    - retrieves all methods for supplied shipping data
- `\Magento\Quote\Model\MaskedQuoteIdToQuoteIdInterface`

    - converts masked quote ID to the quote ID (entity ID)
- `\Magento\Quote\Model\QuoteIdToMaskedQuoteIdInterface`

    - converts quote ID to the masked quote ID

For information about a public API in Magento 2, see [Public interfaces &amp; APIs](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/api-concepts.html).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

49

Last Release

1661d ago

Major Versions

2.4.0.x-dev → 101.1.02021-10-13

2.3.0.x-dev → 101.1.0.x-dev2021-10-13

2.3.1.x-dev → 101.1.12021-10-13

2.3.7.x-dev → 101.2.32021-10-20

100.1.11 → 101.1.62021-10-21

PHP version history (7 changes)2.4.3.x-devPHP ~7.3.0||~7.4.0

101.1.0PHP ~7.1.3||~7.2.0

2.3.3.x-devPHP ~7.1.3||~7.2.0||~7.3.0

101.0.10.x-devPHP ~7.0.13||~7.1.0||~7.2.0

101.0.9PHP ~7.0.13|~7.1.0|~7.2.0

101.0.7.x-devPHP ~7.0.13|~7.1.0

100.1.11.x-devPHP ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/652aa98d25f6bb0dbacf7a805a9110b66e83d8222c60ca2d1b20fa31782a81d3?d=identicon)[magenxcommerce](/maintainers/magenxcommerce)

### Embed Badge

![Health badge](/badges/magenxcommerce-module-quote/health.svg)

```
[![Health](https://phpackages.com/badges/magenxcommerce-module-quote/health.svg)](https://phpackages.com/packages/magenxcommerce-module-quote)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
