elijusasakenas/sales-channel-snippets

Admin-managed sales-channel-specific snippet overrides for Shopware 6.

Maintainers

Package info

github.com/elijusasakenas/Sales-Channel-Snippets

Language:JavaScript

Type:shopware-platform-plugin

pkg:composer/elijusasakenas/sales-channel-snippets

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.1.10 2026-06-08 16:12 UTC

This package is not auto-updated.

Last update: 2026-06-08 19:36:47 UTC


README

Shopware 6 plugin for Admin-managed snippet overrides per sales channel and language.

Version

Current version: 0.1.10

Packagist versions are created from Git tags, for example v0.1.10.

What it does

  • Adds a custom sales_channel_snippet entity.
  • Stores one override per sales channel, language, and snippet key.
  • Adds an Administration settings module.
  • Lets admins search existing Shopware snippets by key or value before creating an override.
  • Decorates the Symfony/Shopware translator in storefront requests.
  • Falls back to the default Shopware snippet when no override exists.

Example

Sales channel Language Snippet key Custom value
B2C Storefront English checkout.confirmSubmit Buy now
B2B Storefront English checkout.confirmSubmit Request order

Installation

Copy the plugin into custom/plugins/SalesChannelSnippets, then run:

bin/console plugin:refresh
bin/console plugin:install --activate SalesChannelSnippets
bin/console database:migrate SalesChannelSnippets
bin/console cache:clear
bin/console administration:build

The module appears under Settings > Extensions > Sales Channel Snippets.

This plugin does not modify Shopware's native Settings > Snippets detail page. To create a sales-channel-specific value, open Settings > Sales Channel Snippets and select the sales channel, language, snippet key, and override value there.

Notes

This plugin intentionally keeps the default snippet system as the fallback source. Only keys saved in the custom module are overridden for the active storefront sales channel and language.

Contributing

Contributions are welcome. See CONTRIBUTING.md for the contribution guidelines.

Changelog

See CHANGELOG.md for release notes.

License

This plugin is released under the MIT License. See LICENSE.