Custom checkout flow > Order summary (sidebar not visible)

Created on 11 June 2024, 4 months ago
Updated 12 June 2024, 4 months ago

With a custom checkout flow, I don't see the Order sidebar (summary information)

On my drupal commerce, I have created a custom checkout flow, to customize several steps and panes.
Here is the code :

    public function getSteps() {
        return [
            'order_information' => [
                'label' => $this->t('Order information'),
                'previous_label' => $this->t('Order information - Previous step'),
                'next_label' => $this->t('Order information - Next step'),
                'has_order_summary' => TRUE,
            ],
            'payment' => [
                'label' => $this->t('Payment'),
                'previous_label' => $this->t('Payment - Previous step'),
                'next_label' => $this->t('Payment - Next step'),
                'has_order_summary' => TRUE,
            ],
            'payment_process' => [
                'label' => $this->t('Payment process'),
                'previous_label' => $this->t('Payment process - Previous step'),
                'next_label' => $this->t('Payment process - Next step'),
                'has_order_summary' => TRUE,
            ],
        ] + parent::getSteps();
    }

On the settings of each step, I define to TRUE the 'has_order_summary' setting. This have no effect, the checkout form is rendered without summary.

If I use the default checkout flow, I see the sidebar and summary information.

What is wrong in my code/settings ?

Thanks for your replies.

💬 Support request
Status

Closed: works as designed

Version

2.39

Component

Checkout

Created by

🇫🇷France kumkum29

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

Comments & Activities

Production build 0.71.5 2024