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 default Rules of cart promotion #15263

Merged
merged 3 commits into from Sep 18, 2023

Conversation

zairigimad
Copy link
Contributor

Q A
Branch? 1.12 or 1.13
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #X, partially #Y, mentioned in #Z
License MIT

@zairigimad zairigimad requested a review from a team as a code owner August 30, 2023 09:23
@probot-autolabeler probot-autolabeler bot added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Aug 30, 2023
Prometee
Prometee previously approved these changes Aug 30, 2023
NoResponseMate
NoResponseMate previously approved these changes Aug 30, 2023
docs/book/orders/cart-promotions.rst Outdated Show resolved Hide resolved
Co-authored-by: Jan Góralski <jan.wojciech.goralski@gmail.com>
@github-actions
Copy link

github-actions bot commented Aug 30, 2023

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

diimpp
diimpp previously approved these changes Sep 14, 2023
@@ -62,6 +62,8 @@ The types of rules that are configured in **Sylius** by default are:
* **Items From Taxon Total** - checks in the cart if items from a given taxon cost a given amount of money,
* **Nth Order** - checks if this is for example the second order made by the customer,
* **Shipping Country** - checks if the order's shipping address is in a given country.
* **Customer Group** - checks if the current customer is in a given customer group.
* **Contains Product** - checks if the order contains a certain product.
Copy link
Member

Choose a reason for hiding this comment

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

Would be cool to sort rules the same way as in the admin panel

image

Some of the rules no longer match admin panel (Not needed captial letters at each word for rest),

--- Taxon
--- Items From Taxon Total 
+++ Has at least one from taxons
+++ Total price of items from taxon
Cart quantity
Customer group
Nth order
Shipping country
Has at least one from taxons
Total price of items from taxon
Contains product
Item total

@zairigimad Hi, great catch 👍 Please let me know if you would like to handle this, or I will do a follow up PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch too @diimpp I can add it if you want in this PR since it’s not merged yet.

Copy link
Member

Choose a reason for hiding this comment

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

That would be awesome, I'll raise this PR for faster merge afterwards.

Sorry for a long wait 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's done.

@jakubtobiasz jakubtobiasz merged commit eea1017 into Sylius:1.12 Sep 18, 2023
5 of 6 checks passed
@jakubtobiasz
Copy link
Member

Thank you, @zairigimad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation related issues and PRs - requests, fixes, proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants