Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the fresh Commerce Kickstart instalation by default the Cart page is not included in the pages where the Progress block should be displayed.
I tried to include the Cart page from the block's settings but it didn't happen.
Comments
Comment #1
dparvanova CreditAttribution: dparvanova commentedOK. I found it:
in the Checkout settings the "Include a Cart link as the first step" should be checked in order to display Cart in the block and display block on the Cart page
Comment #2
NecroHill CreditAttribution: NecroHill commentedComment #3
rphillipsfeynman CreditAttribution: rphillipsfeynman commentedEven with "Include a Cart link as the first step" checked, I am not able to see the checkout progress block on the shopping cart page (/cart). Somehow commerce_checkout_progress_block_view is not being called for that page.
Comment #4
rphillipsfeynman CreditAttribution: rphillipsfeynman commentedI am sorry. commerce_checkout_progress_block_view was being called in the cart page. The problem was in:
$visible = empty($block_pages);
It was returning nothing if $block_pages was empty when it was supposed to return TRUE. I added the following line next to the previous one:
if ( $visible == '' ) $visible = TRUE;
and the problem was solved. I am no expert in drupal nor php so I cannot really explain this.