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

[Documentation] Add tip about locked adjustments #10644

Merged
merged 2 commits into from
Sep 24, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/book/orders/adjustments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ To see changes on the order you need to update it in the database.

$this->container->get('sylius.manager.order')->flush();

.. tip::

An adjustement can be locked with ``$adjustment->setLocked(true)``.
Zales0123 marked this conversation as resolved.
Show resolved Hide resolved
It can be useful when the total order price is recalculated and a promotion isn't applicable anymore
but you still want it to be applied to the order.
In case of an expired coupon that still should be included in the order for example.

Learn more
----------

Expand Down