You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You can now [limit the number of times](discounts_guide.md#discount-codes) a discount code can be used before it expires. The discounts created before this release are set to unlimited global usage
19
+
20
+
#### Discount codes prioritization
21
+
22
+
- Discounts with discount codes now have priority over the other discounts
23
+
24
+
#### Discount codes migrations
25
+
26
+
- You can now create discount codes using [data migrations](importing_data.md#discount-codes).
27
+
28
+
#### PHP API
29
+
30
+
The PHP API has been enhanced with the following new classes:
[[% include 'snippets/update/notify_support.md' %]]
380
384
381
385
With the product updated to the latest version, you can now finish the update process or proceed to updating the LTS Updates packages.
@@ -395,16 +399,16 @@ To use the [latest features](ibexa_dxp_v4.6.md) added to them, update them separ
395
399
396
400
Then apply manually the changes described below.
397
401
398
-
## 4.6.20
402
+
### Discounts v4.6.20
399
403
400
-
### Policy changes
404
+
#### Policy changes
401
405
402
406
The `discount/view` policy is no longer required for the store customers to use a discount and must be removed from all users who are not managing discounts.
403
407
The policy allows to access all the discount details, including the coupon codes to activate them, which could lead to system abuse.
404
408
405
409
To learn more, see the [discounts policies overview](policies.md#discounts).
406
410
407
-
### Database update
411
+
#### Database update
408
412
409
413
Run the following scripts:
410
414
@@ -526,6 +530,28 @@ To use the [latest features](ibexa_dxp_v4.6.md) added to them, update them separ
526
530
REFERENCES ezuser (contentobject_id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE;
527
531
```
528
532
533
+
### Discounts v4.6.22
534
+
535
+
#### Database update
536
+
537
+
Run the following scripts:
538
+
539
+
=== "MySQL"
540
+
541
+
``` sql
542
+
ALTER TABLE ibexa_discount ADD override_prioritization tinyint(1) NOT NULL DEFAULT 0;
543
+
CREATE INDEX ibexa_discount_prioritization_idx ON ibexa_discount (override_prioritization, type, priority);
544
+
ALTER TABLE ibexa_discount_code ADD global_limit INT DEFAULT NULL;
545
+
```
546
+
547
+
=== "PostgreSQL"
548
+
549
+
``` sql
550
+
ALTER TABLE ibexa_discount ADD override_prioritization tinyint(1) NOT NULL DEFAULT 0;
551
+
CREATE INDEX ibexa_discount_prioritization_idx ON ibexa_discount (override_prioritization, type, priority);
552
+
ALTER TABLE ibexa_discount_code ADD global_limit INT DEFAULT NULL;
553
+
```
554
+
529
555
=== "AI actions"
530
556
531
557
Run the following command to get the latest version:
0 commit comments