Skip to content

Commit 861ad2f

Browse files
mnoconadriendupuis
andauthored
Apply suggestions from code review
Co-authored-by: Adrien Dupuis <[email protected]>
1 parent 85aa5da commit 861ad2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/discounts/extend_discounts.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Together with the existing [events](event_reference.md) and the [Discounts PHP A
1515

1616
If you prefer learning from videos, two presentations from Ibexa Summit 2025 cover the Discounts feature:
1717

18-
- Konrad Oboza: [Introduction to the Discounts system in Ibexa DXP](https://www.youtube.com/watch?v=kTgtxY38srw)
19-
- Paweł Niedzielski: [Extending new Discounts to suit your needs](https://www.youtube.com/watch?v=pDJxEKJLwPs)
18+
- [_Introduction to the Discounts system in Ibexa DXP_](https://www.youtube.com/watch?v=kTgtxY38srw) by Konrad Oboza
19+
- [_Extending new Discounts to suit your needs_](https://www.youtube.com/watch?v=pDJxEKJLwPs) by Paweł Niedzielski
2020

2121
## Create custom conditions and rules
2222

@@ -114,8 +114,6 @@ Create the condition by creating a class implementing the [`DiscountConditionInt
114114
The `tolerance` option is made available for usage in the expression by passing it in the constructor.
115115
The expression can evaluate to `true` or `false` depending on the custom expressions values.
116116

117-
118-
119117
For each custom condition class, you must create a dedicated condition factory, a class implementing the `\Ibexa\Discounts\Repository\DiscountCondition\DiscountConditionFactoryInterface` inteface.
120118

121119
This allows you to create conditions when working in the context of the Symfony service container.

0 commit comments

Comments
 (0)