Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module provides the ability to override the default cart page view for Drupal Commerce.
Sponsored by Commerce Guys
Reasons this module exists
- The cart page view is not a view with a page display; therefore, you cannot just override the path.
- The cart page uses a view (commerce_cart_form) that is hard coded in the menu callback for the path "cart"
- The cart page view is not exportable since the default view is defined in Commerce Cart.
The Commerce Cart View Override module solves all of the problems and provides a way to select the view to display on the cart page.
Features Provided
- Implements all module hooks and menu callbacks to override the cart page
- Provides a settings for at "admin/commerce/config/cart-overrides" to specify the view to display on the cart page
- Exportable - able to export a custom view for the cart page. (ie not commerce_cart_form)
Requirements
- Drupal Commerce: 7.x-1.3+
How to use
- Create a new cart view
- Clone the existing view "Shopping cart form", machine name "commerce_cart_form"
- Edit the machine name of the new view so that it starts with "commerce_cart_form", ie "commerce_cart_form_custom"
- Set the cart view to your new view
- Navigate to Administer >> Store >> Configuration >> Cart Overrides
- Select the new view
- Save Configuration
Project information
- Module categories: Developer Tools, E-commerce
- 892 sites report using this module
- Created by recrit on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.2
released 24 July 2013
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 8 Jun 2012 at 00:07 UTC