title | issue |
---|---|
Add option for newsletter DOI for registered customers |
NEXT-14001 |
- Deprecated property
newsletter
inCore/Checkout/Customer/CustomerEntity.php
. - Deprecated field
newsletter
inCore/Checkout/Customer/CustomerDefinition.php
. - Deprecated column
newsletter
in tablecustomer
. - Added
Core/Checkout/Customer/Subscriber/CustomerNewsletterSubscriber.php
- Added
Core/Checkout/Customer/SalesChannel/AbstractNewsletterRecipientRoute.php
- Added
Core/Checkout/Customer/SalesChannel/NewsletterRecipientRoute.php
- Added
Core/Checkout/Customer/SalesChannel/NewsletterRecipientRouteResponse.php
- Added
Core/Content/Newsletter/SalesChannel/SalesChannelNewsletterRecipientDefinition.php
- Added constant
\Shopware\Core\Content\Newsletter\SalesChannel\NewsletterSubscribeRoute::OPTION_DIRECT
- Added constant
\Shopware\Core\Content\Newsletter\SalesChannel\NewsletterSubscribeRoute::OPTION_SUBSCRIBE
- Added constant
\Shopware\Core\Content\Newsletter\SalesChannel\NewsletterSubscribeRoute::OPTION_UNSUBSCRIBE
- Added constant
\Shopware\Core\Content\Newsletter\SalesChannel\NewsletterSubscribeRoute::OPTION_CONFIRM_SUBSCRIBE
- Added system config
core.newsletter.doubleOptInRegistered
inCore/System/Resources/config/newsletter.xml
- Added
Core/Migration/V6_4/Migration1625569667NewsletterDoiForRegistered.php
to add keycore.newsletter.doubleOptInRegistered
insystem_config
- Added new store-api route
/store-api/account/newsletter-recipient
- Deprecated
\Shopware\Storefront\Controller\NewsletterController::$customerRepository
- Deprecated
\Shopware\Storefront\Controller\NewsletterController::$newsletterSubscribeRoute
- Deprecated
\Shopware\Storefront\Controller\NewsletterController::$newsletterUnsubscribeRoute
- Deprecated
\Shopware\Storefront\Controller\NewsletterController::hydrateFromCustomer
- Deprecated
\Shopware\Storefront\Controller\NewsletterController::setNewsletterFlag
- Changed
\Shopware\Storefront\Controller\NewsletterController::subscribeCustomer
to move logic to PageLoader - Changed
\Shopware\Storefront\Controller\NewsletterController::__construct
by adding\Shopware\Storefront\Pagelet\Newsletter\Account\NewsletterAccountPageletLoader
as parameter - Added property
newsletterAccountPagelet
toStorefront/Page/Account/Overview/AccountOverviewPage.php
- Added property
newsletterAccountPageletLoader
toStorefront/Page/Account/Overview/AccountOverviewPageLoader.php
- Changed
\Shopware\Storefront\Page\Account\Overview\AccountOverviewPageLoader::load
to addnewsletterAccountPagelet
by seperate Loader. - Added
Storefront/Pagelet/Newsletter/Account/NewsletterAccountPagelet.php
- Added
Storefront/Pagelet/Newsletter/Account/NewsletterAccountPageletLoadedEvent.php
- Added
Storefront/Pagelet/Newsletter/Account/NewsletterAccountPageletLoader.php
- Changed block
page_account_overview_newsletter_content
inStorefront/Resources/views/storefront/page/account/index.html.twig
to change passed vars - Deprecated variable
success
inStorefront/Resources/views/storefront/page/account/newsletter.html.twig
, this will be replaced bynewsletterAccountPagelet.success
- Deprecated variable
messages
inStorefront/Resources/views/storefront/page/account/newsletter.html.twig
, this will be replaced bynewsletterAccountPagelet.messages
- Deprecated variable
customer
inStorefront/Resources/views/storefront/page/account/newsletter.html.twig
, this will be replaced bynewsletterAccountPagelet.customer
- Changed
Storefront/Resources/views/storefront/page/account/newsletter.html.twig
to handle DOI on newsletter subscription - Added
Storefront/Test/Controller/NewsletterControllerTest.php