I am having the same issue as in #1293866: Need to remove empty pages from progress bar. I have no payment method enabled, but the step is shown in the progress bar.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lukas von Blarer’s picture

jcisio’s picture

Marko B’s picture

Issue summary: View changes

Hmm I have the same problem, payment is there but nothing is shown and commerce goes from 2 directly to 4 in progress indicator. How to fix that ?

kaido.toomingas’s picture

There is problem with commerce. You can not disable payment redirect pane. This issue is not about checkout progress module. I found two ways to fix it.
1. You can go and turn off your payment redirect pane if you don't have any (offsite)payment options.

function YOURMODULE_commerce_checkout_pane_info_alter(&$checkout_panes) {
  $checkout_panes['commerce_payment_redirect']['locked'] = FALSE;
}

2, You can unset payment step using commerce checkout progress module API. This will work if you only want to remove one step from checkout progress module steps.

function YOURMODULE_commerce_checkout_progress_items_alter(&$items) {
  unset($items['payment']);
}
nvahalik’s picture

Issue tags: +sprint
demonde’s picture

Category: Bug report » Feature request

I would like to ask you to make an option on the checkout settings page in the "Commerce Checkout Progress" options:

"Unlock payment redirect pane".

I think this is extremly useful since otherwise I would not use this module in some cases or I have to write custom code.

function commerce_checkout_progress_commerce_checkout_pane_info_alter(&$checkout_panes) {
  $checkout_panes['commerce_payment_redirect']['locked'] = FALSE;
}
andyg5000’s picture

Status: Active » Needs review
FileSize
729 bytes

I was able to resolve this by making sure the pane is enabled during the commerce_checkout_progress_get_items() routine.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -sprint +commerce-sprint

This looks like a nice solution @andyg5000

nvahalik’s picture

Status: Reviewed & tested by the community » Fixed

Committed to dev branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

lukasss’s picture

#7 and dev not working for me

lukasss’s picture

Sorry.
I understood
I forgot to implement it:

function YOURMODULE_commerce_checkout_pane_info_alter(&$checkout_panes) {
  $checkout_panes['commerce_payment_redirect']['locked'] = FALSE;
}

AND

off the payment pane