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.
At the bottom of "/admin/commerce/config/checkout/form/pane/cart_contents" there is an option "Checkout pang configuration" where you can select a view to be used to render the cart contents checkout pane.
I expected by selecting another view that the display of the cart content at "/cart" would change. It didn't.
Attached is a patch that makes the function "commerce_cart_view()" render the configured view+display and not the hardcoded "commerce_cart_form|default" view.
Comment | File | Size | Author |
---|---|---|---|
commerce_cart_view.patch | 957 bytes | weseze | |
Comments
Comment #2
rszrama CreditAttribution: rszrama commentedAs the form indicates, this is for the cart contents checkout pane, not the /cart page. /cart is not part of the checkout form - it's the Cart form, and it's powered entirely by a page callback rendering a View in the Cart module.