sec / promotionimage
Add an image to Shopware promotions and display it in cart and checkout line items.
Package info
github.com/stefan-eik-christiansen/SecPromotionImage
Type:shopware-platform-plugin
pkg:composer/sec/promotionimage
Requires
- shopware/core: ~6.6.0
- shopware/storefront: ~6.6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Shopware 6.6 plugin that adds a configurable image to promotions and displays that image instead of Shopware's default promotion icon in cart and checkout line items.
Requirements
- Shopware 6.6.x
Installation
Copy the plugin to custom/plugins/SecPromotionImage and run:
bin/console plugin:refresh bin/console plugin:install --activate SecPromotionImage bin/console cache:clear
No Administration or Storefront asset build is required.
Usage
- Open Marketing > Promotions in the Shopware Administration.
- Open a promotion.
- In the custom fields card, select a medium in Bild für Aktion / Promotion Image.
- Save the promotion.
- When the promotion is applied, Shopware uses this medium as the promotion line-item image in Offcanvas cart, cart and checkout.
If no image is configured, Shopware keeps its standard promotion icon.
Technical details
Technical plugin name: SecPromotionImage
Composer package: sec/promotionimage
Namespace: Sec\\PromotionImage
Custom field: sec_promotion_image
The promotion custom field is translated by Shopware. The storefront integration resolves it via the translated custom-field value and assigns the selected medium to the promotion line item as its cover.