Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update catalog promotion instantly if date is set on future #13584

Merged
merged 1 commit into from Feb 3, 2022

Conversation

SirDomin
Copy link
Contributor

@SirDomin SirDomin commented Feb 2, 2022

Q A
Branch? 1.11
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no/
Related tickets
License MIT

If we had CatalogPromotion already applied on channelPricings, after changing its startDate to next day, previous discounts would still be applied, with this event we force to recalculate catalog promotions.

@SirDomin SirDomin requested a review from a team as a code owner February 2, 2022 08:51
$messageUpdate = new CatalogPromotionUpdated('SALE');
$messageEnd = new CatalogPromotionEnded('SALE');

$eventBus->dispatch($messageUpdate, [])->willReturn(new Envelope($messageUpdate))->shouldBeCalled();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@lchrusciel lchrusciel merged commit 5167bbf into Sylius:1.11 Feb 3, 2022
@lchrusciel
Copy link
Member

Thanks, @SirDomin! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants