sidworks / sw-plugin-product-labels
Sidworks product labels
Package info
github.com/sidworks-dev/sw-plugin-product-labels
Type:shopware-platform-plugin
pkg:composer/sidworks/sw-plugin-product-labels
Requires
- shopware/core: ~6.7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This plugin adds custom product labels to the storefront of Shopware 6. You can attach multiple labels to multiple products by Product groups or custom product selection
Images
Installation
composer require sidworks/sw-plugin-product-labels bin/console plugin:refresh bin/console plugin:install --activate SidworksProductLabels
Todo
- Add option to use {{ product.variable }} in content of label
- Make scheduler work
- Bulk delete in admin
Inline SVG icons and custom classes
Each label supports an optional SVG icon and CSS classes. Paste a complete
<svg> icon beside the existing plain-text label content. The storefront accepts
passive vector shapes and removes scripts, styles, links and external resources.
Use presentation attributes such as fill, stroke, viewBox and transform.
CSS classes are rendered on the label itself, including linked labels. They are hooks for a theme; this plugin does not prescribe seasonal styling or animations. Existing labels and their links continue to work with both fields empty.
Updating
After updating the Composer package, refresh and update the plugin to apply its database migrations, then install the bundled administration assets:
bin/console plugin:refresh bin/console plugin:update SidworksProductLabels bin/console assets:install bin/console cache:clear
Tests
Run from the plugin directory using the PHPUnit installation of your Shopware project:
php /path/to/shopware/vendor/bin/phpunit -c phpunit.xml.dist
The bootstrap finds the surrounding Shopware installation, or accepts
SHOPWARE_PROJECT_ROOT=/path/to/shopware. To include the transactional DAL test,
set SIDWORKS_LABELS_INTEGRATION=1 in a local APP_ENV=dev installation with this
plugin active and its migrations applied. Fixture writes are rolled back.


