Describe your bug or feature request.

I have the need to scope block visibility depending on the active store.

There is no current block visibility condition for this, but there probably should be.

I see I'm not the first person to try to implement something like this.

First off there' 2918708. But this is visibility by Store Type, not by Store entity. So not what I was looking for.

Then there's https://www.drupal.org/project/store_visibility_condition. I think this mostly works, except it is not compatible with commerce 3, also the JS doesn't seem to work.

Issue fork commerce-3586369

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mdranove created an issue. See original summary.

mdranove’s picture

Status: Active » Needs review

I touched up the condition plugin provided by the store_visibility_module, included the uninstall hook, added an update to the schema.yml, and with the assistance of chat gpt provided tests.

Seems to work just fine on my local.

moving to NR.