Make the secondary region of order admin view extensible

Created on 10 August 2018, over 6 years ago
Updated 12 November 2024, 22 days ago

The right-hand sidebar of orders (seen at admin/commerce/orders/xxx) is hardcoded in modules/order/templates/commerce-order--admin.html.twig:

      {% if order.billing_information %}
        <details open>
          <summary role="button">
            {{ 'Billing information'|t }}
          </summary>
          <div class="details-wrapper">
            {{ order.billing_information }}
          </div>
        </details>
      {% endif %}
... etc

It would be really useful if other modules could add to this, e.g. Commerce Recurring could add details to say show the subscription and original order for a recurring order.

Feature request
Status

Needs review

Version

2.0

Component

Order

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • leymannx Berlin

    seven CSS classes referenced in the old patch is called claro now.

  • 🇮🇱Israel jsacksick

    hm... Basically this is about outputting "regions", that aren't set anywhere besides custom code? Since this requires custom code to be written, why not just overridding the template in this case? I guess to just benefit from potential changes to the order template? Feels weird to inject variables that we aren't setting anywhere.

Production build 0.71.5 2024