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.
Closed: works as designed
2.39
Checkout