Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Commerce Cart Advanced

No security coverage

Part of the Commerce ecosystem · 355 projects

View on drupal.org

Commerce Cart Advanced provides enhancements on the Commerce Cart module for Drupal Commerce. At the present time, it improves the user experience with maintaining multiple carts.

Multiple carts

Commerce 2 allows a user to maintain more than one cart; in most cases this will happen automatically. When adding to the cart products that belong to different stores, or products associated with different order types, the cart will be split to 2 or more carts. When a user adds a product to the cart as an anonymous user, and then logs in, the created cart will remain as a separate cart even if there already exists one associated with the authenticated user.

User experience issues caused by the default behavior:

  • All carts are displayed as a list and in full i.e. the full cart form. Depending on the site's styles the page can become too long or overloaded. Depending on the site and the nature of the multiple carts, the user might only be interested in the first cart only.
  • Some single-store sites might be customized to display only the first cart. In that case, when a user removes all items from the first cart they would expect to see an empty cart. However, an old cart associated with the user will be loaded causing confusion. The same can happen when the user proceeds to checkout and places an order.

Current functionality

Single vs Multiple carts display

Commerce Cart Advanced allows store managers to choose whether to display only one cart on the cart page, or multiple.

Current vs Non-current carts

When configured to display multiple carts, Commerce Cart Advanced splits carts into current and non-current carts. By default, the first cart per store is considered as current, while the rest are non-current. Each cart type can be configured to use a different Views form and they are provided with a different wrapper theme; this allows to visually differentiate between current and non-current carts in terms of importance, and to reduce the page length. For example, current carts (only one cart in the case of single-store sites), can be displayed in full at the top of the page, while non-current carts can be displayed as a list or even as a carousel in teaser/summary mode.

Save for later

Users can explicitly mark a cart as non-current via a "Save for later" button. That will move the current cart to the non-current carts section and the user can create a new cart. That can be useful if the user wants to keep their product selection for a later moment.

Individual cart page

Each cart is also provided with its own cart page; for example, non-current carts that may be displayed in teaser mode on the main cart page can be viewed on their own and the user can proceed to checkout from there.

Individual cart item page

Each cart item is provided with its own cart page where they can be edited individually.

Empty cart page

By default, once a cart is displayed in the non-current carts section it is permanently marked as non-current. That means that (in single-store sites) when a user checks out the main cart, or remove all of its items, the user then will be displayed with an empty cart instead of pulling up an old cart.

Access control

Permissions are provided for viewing/editing own or all carts.

Customizations

Commerce Cart Advanced allows other modules to customize which carts should be considered as current and which as non-current. Applications can therefore implement their own logic to determine which cart to display at the top.

Proposed functionality

Features that may be implemented in the future:

  • Allow merging 2 or more carts into one cart.
  • Allow proceeding and completing checkout for 2 or more carts at once.

Development status

The module is close to having a release candidate and then a stable release. Help us by using the module and report any issues on the issue queue, or by sponsoring development.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.x-dev Dev Dec 26, 2023