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

[CatalogPromotion] Apply catalog promotions for product created in catalog promotions scope #13538

Merged
merged 9 commits into from
Jan 31, 2022

Conversation

ernestWarwas
Copy link
Contributor

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

New products should apply for catalog promotion if falls in catalog promotion scope (eg. when creating a new product in taxon „Clothes” which applies for catalog promotion)

@ernestWarwas ernestWarwas requested a review from a team as a code owner January 25, 2022 14:39
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Jan 25, 2022
@ernestWarwas ernestWarwas added the Bug Confirmed bugs or bugfixes. label Jan 25, 2022
@GSadee GSadee force-pushed the apply-cp-when-create-product branch 3 times, most recently from 5179dd3 to 5594413 Compare January 31, 2022 10:47
@GSadee GSadee changed the title [WIP] Apply catalog promotion when creating product in catalog promotion scope [CatalogPromotion] Apply catalog promotions for product created in catalog promotions scope Jan 31, 2022
@GSadee GSadee force-pushed the apply-cp-when-create-product branch from 6ee7620 to 0f27fa5 Compare January 31, 2022 13:03
@GSadee GSadee force-pushed the apply-cp-when-create-product branch from 0f27fa5 to e49e3fc Compare January 31, 2022 13:50
@@ -250,6 +264,7 @@ protected function getDefinedElements(): array
'language_tab' => '[data-locale="%locale%"] .title',
'locale_tab' => '#attributesContainer .menu [data-tab="%localeCode%"]',
'main_taxon' => '#sylius_product_mainTaxon',
'product_taxons' => '#sylius_product_productTaxons',
Copy link
Member

Choose a reason for hiding this comment

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

Can we use test attribute here?

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC we are using test attribute only in shop

And I am logged in as an administrator

@ui @javascript @no-api
Scenario: Applying catalog promotion on newly created simple product
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we should cover product creation without any variant case as well

@lchrusciel lchrusciel merged commit 367808d into Sylius:1.11 Jan 31, 2022
@lchrusciel
Copy link
Member

Thank you, @ernestWarwas! 🎉

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

Successfully merging this pull request may close these issues.

None yet

5 participants