Fieldgroups not showing on checkout

Created on 15 September 2021, over 3 years ago
Updated 11 May 2024, 8 months ago

I created custom fields in order-types, also all are displayed on the checkout checkout-order-fields pane. but if i add fieldgroups, accordions, tabs or multipages to order-items form display checkout only the fields are visible.

🐛 Bug report
Status

Active

Version

1.1

Component

Miscellaneous

Created by

🇩🇪Germany fhe_sol

Live updates comments and jobs are added and updated live.
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.

  • 🇩🇪Germany Anybody Porta Westfalica

    How can this be reproduced?

  • Status changed to Active 8 months ago
  • 🇦🇺Australia jannakha Brisbane!

    I think I can reproduce this behaviour:
    - enable drupal/field_group module
    - add field group elements (html element, details, etc)

    - these elements are not being rendered in the checkout flow (see screenshot)

    - these elements are being rendered within order edit for in Commerce (/admin/commerce/orders/1420638/edit) see screenshot

    this issue might be related to how Commerce builds forms by using inline forms:
    - see code in Drupal\commerce_order\Plugin\Commerce\InlineForm CustomerProfile.php "public function buildInlineForm(array $inline_form, FormStateInterface $form_state) ..."
    - possibly related issue: https://www.drupal.org/project/commerce/issues/3068063

    I also tried to install "Conditional fields" module and show/hide some fields on checkout based on user input (some sort of survey) - but because the form is rendered as inline form - conditional fields are not working (they do work on normal edit form page).

    @anybody: any thoughts on how to resolve it?

Production build 0.71.5 2024