px86/category-notifier
最新稳定版本:v1.0.4
Composer 安装命令:
composer require px86/category-notifier
包简介
Ermöglicht Besuchern, sich für Benachrichtigungen zu neuen Produkten in Kategorien anzumelden
README 文档
README
A Shopware 6.6+ / 6.7 plugin that allows visitors to subscribe to email notifications for new products in specific categories.
Thanks for your Support <3
Features
- ✅ Frontend subscription form on category pages
- ✅ Double-Opt-In confirmation via email
- ✅ Automatic notifications for new products
- ✅ Notifications for category assignments to existing products
- ✅ Administration module to manage subscriptions
- ✅ Multilingual (German/English)
- ✅ GDPR compliant with unsubscribe functionality
- ✅ Customizable email templates in admin panel
- ✅ Compatible with Shopware 6.6 and 6.7
Installation
Via Composer (recommended)
composer require px86/category-notifier bin/console plugin:refresh bin/console plugin:install --activate Px86CategoryNotifier
Manual Installation
- Download the latest release ZIP
- Extract to
custom/plugins/Px86CategoryNotifier - Install via CLI:
bin/console plugin:refresh bin/console plugin:install --activate Px86CategoryNotifier
Build Assets
After installation, build the assets:
# Storefront assets bin/console assets:install bin/build-storefront.sh # Administration assets bin/build-administration.sh
Configuration
Navigate to: Settings → Extensions → My Extensions → Px86CategoryNotifier → ... → Configuration
Basic Settings
-
Display Mode: Configure where the subscription form should appear
- Show in all categories
- Show only in selected categories
- Show in all except selected categories
-
Selected Categories: Choose specific categories (required for "selected" and "excluded" modes)
Form Display
- Form Position: Choose whether to display the form above or below the product listing
Customization
Storefront Texts
Text strings in the subscription form can be customized in the snippet files:
German:
src/Resources/snippet/de_DE/messages.de-DE.json
English:
src/Resources/snippet/en_GB/messages.en-GB.json
Available snippet keys:
px86-category-notifier.subscription.title- Form headingpx86-category-notifier.subscription.description- Form descriptionpx86-category-notifier.subscription.email- Email field labelpx86-category-notifier.subscription.firstName- First name labelpx86-category-notifier.subscription.lastName- Last name labelpx86-category-notifier.subscription.submit- Submit button textpx86-category-notifier.subscription.success- Success messagepx86-category-notifier.subscription.error.*- Error messages
Clear cache after changes:
bin/console cache:clear
Email Templates
Email templates can be edited directly in the admin panel:
Settings → Email Templates
Search for "Category" or filter by plugin:
- Category Notification: Confirmation - Double-opt-in email
- Category Notification: New Product - Product notification email
Styling
Customize the form design in:
src/Resources/app/storefront/src/scss/base.scss
Additional Languages
Add translations by creating new snippet files under src/Resources/snippet/
Technical Details
Database Schema
Table: px86_category_notifier_subscription
- Stores email, category ID, name, and status
- Foreign keys to
categoryandsalutationtables - Optimized with indexes for performance
Event System
- Listens to
ProductEvents::PRODUCT_WRITTEN_EVENT - Automatically detects new products
- Sends notifications to all confirmed subscribers
- Detects category assignments to existing products
API Endpoints
POST /category-notifier/subscribe- Create new subscriptionGET /category-notifier/confirm/{token}- Confirm subscriptionGET /category-notifier/unsubscribe/{email}/{categoryId}- Unsubscribe
Development
Requirements
- PHP 8.1+
- Shopware 6.6.0+ or 6.7.0+
- Composer
- Node.js (for asset building)
Code Quality
This plugin follows Shopware Store quality guidelines:
- ✅ PSR-4 Autoloading
- ✅ Shopware 6.6/6.7 API compatibility
- ✅ Multilingual support
- ✅ Admin interface
- ✅ Proper migration system
- ✅ Service container pattern
- ✅ Event subscriber pattern
- ✅ GDPR compliant
Changelog
Version 1.0.0
- Initial release
- Frontend subscription form
- Double-opt-in confirmation
- Automatic product notifications
- Administration module for subscription management
- Multilingual support (DE/EN)
- Customizable email templates
- GDPR-compliant unsubscribe functionality
Support
- Issues: GitHub Issues
- Donate: Buy me a coffee
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-12