There is no translation in breadcrumbs for Checkout

Created on 11 March 2023, over 1 year ago
Updated 21 April 2023, over 1 year ago

Describe your bug or feature request.

Hello dear authors of the project. I noticed that breadcrumbs don't have a Checkout translation for the "/checkout" path.
The found problem is easily solved by adding _title: 'Checkout' to commerce_checkout.checkout:

/commerce/modules/checkout/commerce_checkout.routing.yml

commerce_checkout.checkout:
  path: '/checkout'
  defaults:
    _controller: '\Drupal\commerce_checkout\Controller\CheckoutController::checkoutRedirect'
    _title: 'Checkout' (<<<<<<<<<<<<<<<< Add)
  requirements:
    _permission: 'access checkout'
  options:
    no_cache: TRUE

Maybe for a more understandable breadcrumbs content, replace _title: 'Checkout' with _title: 'Checkout progress' in commerce_checkout.form:

commerce_checkout.form:
  path: '/checkout/{commerce_order}/{step}'
  defaults:
    _controller: '\Drupal\commerce_checkout\Controller\CheckoutController::formPage'
    _title: 'Checkout progress' (<<<<<<<<<<< This)
    step: null
  requirements:
    _custom_access: '\Drupal\commerce_checkout\Controller\CheckoutController::checkAccess'
  options:
    parameters:
      commerce_order:
        type: entity:commerce_order

Please consider this ...

📌 Task
Status

Fixed

Version

2.33

Component

Checkout

Created by

🇷🇺Russia profwebsait

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024