Hi,

I'm using panels for my commerce site and my checkout pages are also based on panels.

When I include the Checkout progress pane, I first get the error message:

Notice: Use of undefined constant BLOCK_VISIBILITY_LISTED - assumed 'BLOCK_VISIBILITY_LISTED' in commerce_checkout_progress_block_info() (regel 23 van /Library/Server/Web/Data/Sites/topored.maxplus.be/sites/all/modules/commerce_checkout_progress/commerce_checkout_progress.module).

The Progress pane is not visible when rendering the page.

Does anybody has used Commerce Progress together with Panels?

Comments

barwonhack’s picture

I'm seeing the same issue.

maxplus’s picture

Maybe it is because in the module code, I think it is placed by default inside a specific theme region.
I'm fully based on Panels so I only have one region...

maxplus’s picture

I see a lot of "visibility" settings inside "commerce_checkout_progress.module"
=> I'm sure that the progress is not visible because something with these variables.

I don't have the Drupal core Block module enabled, so I cannot set something through UI to modify some settings.

Can anybody help me how I can make this checkout progress block visible by setting some values or settings directly in the module code?

malberts’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1006 bytes

There are two issues here:
1. the block info hook depends on a constant in the block module
2. the module requires the page content to be rendered before it can figure out which step of the checkout it is in (this happens when using PM Existing Pages to override the checkout)

Attached is a patch that will let the block be shown with the default settings. It does not add the ability to change the settings that are exposed when the Block module is enabled.

maxplus’s picture

Hi Malberts,

I have tested it immediately on my current full-panels based commerce project, and IT WORKS.
(I have patched the current stable 1.3 version)

I am very happy, thanks for the help!

malberts’s picture

StatusFileSize
new1.04 KB

Updated patch. The previous one showed errors when you enable blocks.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

That helped a lot, thank you @malberts, the links and position were always at the start but this fix made the links work as expected!

nvahalik’s picture

Issue tags: +sprint

  • nvahalik committed 1118171 on 7.x-1.x authored by malberts
    Issue #2233111 by malberts: Not visible when using panels
    
nvahalik’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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