Skip to content

Commit 50a82bb

Browse files
[Discounts] Release notes (#2785)
* [PHP API] Discounts (#2763) * [PHP API REF] Added Discount packages * Generated PHP API for Discounts * Discount product guide * Fixed links and navigation * Removed nav * Fixed links * Fixed typo * Fixed badges * Removed whitespace * Fixes before review * After review fixes * Currency remark * Discount migrations (#2768) * [Discounts] Added migration doc * Added files * Update docs/content_management/data_migration/importing_data.md * Applied suggestions from code review (#2767) Co-authored-by: julitafalcondusza <[email protected]> * [Discounts] Search overview (#2773) * [Discounts] Search overview * Fixes before review * Reworded Type sort clause * Update docs/search/discounts_search_reference/discounts_sort_clauses.md Co-authored-by: julitafalcondusza <[email protected]> --------- Co-authored-by: julitafalcondusza <[email protected]> * [Discounts] Event reference (#2776) * [Discounts] Added event reference * Fixed links * Fixes before review * Removed column * [Discounts] Mentioned discounts in pricing and customer groups (#2775) * Mentioned discounts in pricing and customer groups * Before review fixes * Added mention to the PIM guide * [Discounts] Discount policies (#2771) * Permissions * Build fixes * Fixed links * Fixed last links * Removed link * Apply suggestions from code review Co-authored-by: julitafalcondusza <[email protected]> --------- Co-authored-by: julitafalcondusza <[email protected]> * Discounts update (#2774) * Added update instructions * Fixed link * [Discounts] Added Twig reference * Self review * [Discounts] Release notes * Added mention about the update --------- Co-authored-by: julitafalcondusza <[email protected]>
1 parent c7b190b commit 50a82bb

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

docs/release_notes/ibexa_dxp_v4.6.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@ The PHP API has been enhanced with the following new classes:
4545
[[= release_note_entry_end() =]]
4646

4747
[[% set version = 'v4.6.20' %]]
48+
[[= release_note_entry_begin("Discounts " + version, '2025-05-28', ['Commerce', 'LTS Update']) =]]
49+
50+
#### Features
51+
52+
- With the introduction of discount code usage limits, you can now limit the number of times a customer can use a discount code before it becomes invalid
53+
- You can now provide your own form themes for the discounts form by using the extension point in [`ibexa_discounts_form_themes` Twig function](discounts_twig_functions.md#ibexa_discounts_form_themes)
54+
55+
#### PHP API
56+
57+
The PHP API has been enhanced with the following new classes:
58+
59+
- [`Ibexa\Contracts\Discounts\Admin\Form\DiscountValueFormTypeMapperInterface`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Admin-Form-DiscountValueFormTypeMapperInterface.html)
60+
- [`Ibexa\Contracts\Discounts\Admin\Form\FormThemeProviderInterface`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Admin-Form-FormThemeProviderInterface.html)
61+
- [`Ibexa\Contracts\DiscountsCodes\Exception\DiscountCodeUnusableException`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Exception-DiscountCodeUnusableException.html)
62+
- [`Ibexa\Contracts\DiscountsCodes\Exception\DiscountCodeUserInvalidArgumentException`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Exception-DiscountCodeUserInvalidArgumentException.html)
63+
- [`Ibexa\Contracts\DiscountsCodes\Value\DiscountCodeUsageInterface`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Value-DiscountCodeUsageInterface.html)
64+
- [`Ibexa\Contracts\DiscountsCodes\Value\DiscountCodeUser`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Value-DiscountCodeUser.html)
65+
- [`Ibexa\Contracts\DiscountsCodes\Value\Query\DiscountCodeUsageQuery`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Value-Query-DiscountCodeUsageQuery.html )
66+
67+
To update to the latest version, see the [update instructions](update_from_4.6.md#lts-updates).
68+
69+
[[= release_note_entry_end() =]]
70+
4871
[[= release_note_entry_begin("Ibexa DXP " + version, '2025-05-27', ['Headless', 'Experience', 'Commerce']) =]]
4972

5073
#### Twig Components
@@ -78,6 +101,21 @@ The PHP API has been enhanced with the following new classes:
78101
[[= release_note_entry_end() =]]
79102

80103
[[% set version = 'v4.6.19' %]]
104+
105+
[[= release_note_entry_begin("Discounts", '2025-04-09', ['Commerce', 'LTS Update', 'New feature']) =]]
106+
107+
With the Discounts LTS Update, you can temporarily or permanently reduce prices on specific products or categories, making deals more attractive to potential buyers.
108+
109+
Use them to encourage first-time purchases, reward loyal customers, promote new or slow-moving items, or drive sales during seasonal events.
110+
111+
By displaying discounted prices clearly in the catalog or cart, businesses can create a sense of urgency, increase customer satisfaction, and ultimately boost revenue.
112+
113+
![Discounts for products in the cart](4.6_discounts.png)
114+
115+
For more information, see [Discounts product guide](discounts_guide.md).
116+
117+
[[= release_note_entry_end() =]]
118+
81119
[[= release_note_entry_begin("AI Actions " + version, '2025-04-09', ['LTS Update', 'New feature']) =]]
82120

83121
#### Features
97.5 KB
Loading

docs/templating/twig_function_reference/discounts_twig_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Displays the product price before the discount was applied.
6363

6464
### `ibexa_format_discount_value()`
6565

66-
Formats the discount value for each discount type, for example, by displaying `-10 EUR` or `-10%`.
66+
Formats the discount value for each discount type, for example by displaying `-10 EUR` or `-10%`.
6767

6868
``` html+twig
6969
content: ibexa_format_discount_value(discount),

0 commit comments

Comments
 (0)