Skip to content

Repository files navigation

Shopware 6 Toolbox

Build Version Downloads

Shopware 6 Toolbox is a helper plugin for Shopware 6 development. It adds some live templates and scaffolding of common Shopware files.

Current features:

  • Lot of live templates for developing. Use STRG + J to see all live templates of current scope
  • Generators:
    • Vue.js Admin component
    • config.xml
    • Extend this block in Storefront with auto file creation
    • Vue module
    • Scheduled task
    • Changelog
  • Inspection to show an error when abstract class is used incorrectly in the constructor
  • Autocompletion for:
    • Admin component
    • Snippets in Administration and Storefront
    • Storefront functions theme_config, config, seoUrl, sw_include and sw_extends
    • Repositories at this.repositoryFactory.create
    • Module.register labels
    • Show only admin component autocompletion when the twig file is next to an index.js
    • Feature flag
  • Twig Block Versioninghow it works

Installation

  • Using IDE built-in plugin system (recommended):

    Settings/Preferences > Plugins > Marketplace > Search for "Shopware 6 Toolbox" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Pre-release updates

To receive pre-release builds, open Settings/Preferences > Plugins > ⚙️ > Manage Plugin Repositories... and add:

https://plugins.jetbrains.com/plugins/eap/17632

The EAP channel includes pre-releases and stable releases. Remove this repository to return to stable updates; if you want to downgrade immediately, reinstall the plugin from the Marketplace.

Publishing releases

  • Set pluginVersion in gradle.properties to the next version, such as 0.1.2-eap.1 for a pre-release or 0.1.2 for a stable release.
  • After a successful build on main, the workflow creates a draft release. Versions with a pre-release suffix are automatically marked as pre-releases.
  • Review and publish the draft. GitHub releases marked Set as a pre-release publish only to eap; stable releases publish to both default and eap.

The release tag supplies the built plugin version (an optional leading v is removed). Use a unique pre-release version for each build, then publish a separate stable release with a stable version. Changing an existing release's pre-release checkbox does not publish another build. Only stable releases create a changelog update pull request.

For local publishing, ./gradlew publishPlugin infers the same channels from pluginVersion. Override them with -PpluginChannels=eap or -PpluginChannels=default,eap if needed. See JetBrains' custom release channel documentation.

Showcase

Components

Adding admin component completion to #Shopware 6 Toolbox plugin. Autocomplete for component + props working. Jumping to the component works also using STRG + CLICK. Also added feature flag autocompletion + a quick plugin generator pic.twitter.com/7KmlAyG5UD

— Shyim (@Shyim97) September 25, 2021

Component Extent Autocomplete

Component Extent Autocomplete

Lookup in Twig

Lookup in Twig

Properties

Properties

Create Plugin

Create Plugin

Config Autocomplete

New day new #Shopware plugin update prepared. This time theme_config and config autocomplete. Have a wish for the next feature? Create an issue with your idea :)https://t.co/Tmd66aVA5p pic.twitter.com/bqM8jtylyt

— Shyim (@Shyim97) September 28, 2021

Theme Config

Theme Config

System Config

System Config

Config in Twig

Config in Twig

Strings

Strings

Blocks

How to be lazier while creating #Shopware 6 extensions. Alt+Enter on any Storefront twig block => Extend block. 😂. pic.twitter.com/uf9hhi9Ugr

— Shyim (@Shyim97) September 29, 2021

Step 1

Blocks - Step 1

Step 2

Blocks - Step 2

Step 3

Blocks - Step 3

About

No description or website provided.

Topics

Resources

Contributing

Stars

65 stars

Watchers

14 watching

Forks

Releases

Packages

Used by

Contributors

Languages