diff --git a/docs/release_notes/ibexa_dxp_v4.6.md b/docs/release_notes/ibexa_dxp_v4.6.md index 4f4c43b171..911bff2207 100644 --- a/docs/release_notes/ibexa_dxp_v4.6.md +++ b/docs/release_notes/ibexa_dxp_v4.6.md @@ -45,6 +45,29 @@ The PHP API has been enhanced with the following new classes: [[= release_note_entry_end() =]] [[% set version = 'v4.6.20' %]] +[[= release_note_entry_begin("Discounts " + version, '2025-05-28', ['Commerce', 'LTS Update']) =]] + +#### Features + +- 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 +- 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) + +#### PHP API + +The PHP API has been enhanced with the following new classes: + +- [`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) +- [`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) +- [`Ibexa\Contracts\DiscountsCodes\Exception\DiscountCodeUnusableException`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Exception-DiscountCodeUnusableException.html) +- [`Ibexa\Contracts\DiscountsCodes\Exception\DiscountCodeUserInvalidArgumentException`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Exception-DiscountCodeUserInvalidArgumentException.html) +- [`Ibexa\Contracts\DiscountsCodes\Value\DiscountCodeUsageInterface`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Value-DiscountCodeUsageInterface.html) +- [`Ibexa\Contracts\DiscountsCodes\Value\DiscountCodeUser`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-DiscountsCodes-Value-DiscountCodeUser.html) +- [`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 ) + +To update to the latest version, see the [update instructions](update_from_4.6.md#lts-updates). + +[[= release_note_entry_end() =]] + [[= release_note_entry_begin("Ibexa DXP " + version, '2025-05-27', ['Headless', 'Experience', 'Commerce']) =]] #### Twig Components @@ -78,6 +101,21 @@ The PHP API has been enhanced with the following new classes: [[= release_note_entry_end() =]] [[% set version = 'v4.6.19' %]] + +[[= release_note_entry_begin("Discounts", '2025-04-09', ['Commerce', 'LTS Update', 'New feature']) =]] + +With the Discounts LTS Update, you can temporarily or permanently reduce prices on specific products or categories, making deals more attractive to potential buyers. + +Use them to encourage first-time purchases, reward loyal customers, promote new or slow-moving items, or drive sales during seasonal events. + +By displaying discounted prices clearly in the catalog or cart, businesses can create a sense of urgency, increase customer satisfaction, and ultimately boost revenue. + +![Discounts for products in the cart](4.6_discounts.png) + +For more information, see [Discounts product guide](discounts_guide.md). + +[[= release_note_entry_end() =]] + [[= release_note_entry_begin("AI Actions " + version, '2025-04-09', ['LTS Update', 'New feature']) =]] #### Features diff --git a/docs/release_notes/img/4.6_discounts.png b/docs/release_notes/img/4.6_discounts.png new file mode 100644 index 0000000000..7036a77770 Binary files /dev/null and b/docs/release_notes/img/4.6_discounts.png differ diff --git a/docs/templating/twig_function_reference/discounts_twig_functions.md b/docs/templating/twig_function_reference/discounts_twig_functions.md index 8e8863716a..85938057d0 100644 --- a/docs/templating/twig_function_reference/discounts_twig_functions.md +++ b/docs/templating/twig_function_reference/discounts_twig_functions.md @@ -63,7 +63,7 @@ Displays the product price before the discount was applied. ### `ibexa_format_discount_value()` -Formats the discount value for each discount type, for example, by displaying `-10 EUR` or `-10%`. +Formats the discount value for each discount type, for example by displaying `-10 EUR` or `-10%`. ``` html+twig content: ibexa_format_discount_value(discount),