Skip to content

feat(plugins): switch a plugin's storefront scripts on in Settings > Plugins - #244

Merged
Rl0007 merged 3 commits into
developfrom
feat/plugin-storefront-switch
Oct 10, 2026
Merged

Rl0007 merged 3 commits into
developfrom
feat/plugin-storefront-switch

Conversation

@NagariaHussain

Copy link
Copy Markdown
Contributor

Summary

A merchant can now turn a plugin's storefront scripts and blocks on or off in Settings > Plugins. Before, the switch was only in Desk under Commera Settings > Storefront apps.

This PR builds on #242. GitHub moves its base to develop when #242 merges.

Why

A plugin that declares commera_storefront_include_js, commera_storefront_include_css or commera_storefront_blocks loads on store pages only after the merchant turns it on. Merchants work in /commera, so a plugin such as a popup could not be turned on without a trip to Desk.

What changed

  • The plugin detail in Settings > Plugins has a Run on the storefront switch for each plugin that declares a storefront hook. It saves on change, like other settings switches.
  • plugins.get_plugins returns storefront for each plugin: null without a storefront hook, else whether it is on.
  • New plugins.set_storefront_enabled(app, enabled) (POST, System Manager). It refuses an app without a storefront hook.

Screenshots

🤖 Generated with Claude Code

NagariaHussain and others added 2 commits October 10, 2026 00:39
…Plugins

A plugin that declares commera_storefront_include_js, _include_css or
commera_storefront_blocks loads on store pages only after the merchant turns
it on, and that switch lived only in Desk under Commera Settings. The plugin
detail in Settings > Plugins now has a Run on the storefront switch, backed by
plugins.set_storefront_enabled (System Manager).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rl0007
Rl0007 merged commit 2d5f4d8 into develop Oct 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants