From a0539fd56b49e7401e898a0890ae34b5ef9274b0 Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Mon, 17 Apr 2017 16:12:20 -0500 Subject: [PATCH] Issue #2831945 by mglaman: The payment step is always present in the checkout progress block --- modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php b/modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php index 1f503489eb..2ad71bf31b 100644 --- a/modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php +++ b/modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php @@ -93,6 +93,10 @@ public function build() { $current_step_index = array_search($current_step_id, array_keys($visible_steps)); $index = 0; foreach ($visible_steps as $step_id => $step_definition) { + if ($step_id == 'payment') { + continue; + } + if ($index < $current_step_index) { $position = 'previous'; }