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
- Require valid token or logged-in cart owner to load a cart via load-cart action
- Add cartLinkExpiry setting (default 24 hours) for token expiration
- Add getLoadCartUrl() method to Carts service that generates secure token URLs
- Update Order::getLoadCartUrl() to return secure token URL
- Add email challenge flow for cart recovery when token is missing/expired
- Register commerce_cart_recovery system message for recovery emails
- Add _cart/email-challenge.twig and email-sent.twig templates
Copy file name to clipboardExpand all lines: src/models/Settings.php
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,13 +141,22 @@ class Settings extends Model
141
141
/**
142
142
* @var string|null Default URL to be loaded after using the [load cart controller action](https://craftcms.com/docs/commerce/5.x/system/orders-carts.html#loading-a-cart).
143
143
*
144
-
* If `null` (default), Craft’s default [`siteUrl`](config5:siteUrl) will be used.
144
+
* If `null` (default), Craft's default [`siteUrl`](config5:siteUrl) will be used.
145
145
*
146
146
* @group Cart
147
147
* @since 3.1
148
148
*/
149
149
public ?string$loadCartRedirectUrl = null;
150
150
151
+
/**
152
+
* @var int How long (in seconds) a cart recovery link should remain valid before expiring.
153
+
* Default is 86400 (24 hours).
154
+
*
155
+
* @group Cart
156
+
* @since 5.x
157
+
*/
158
+
publicint$cartLinkExpiry = 86400;
159
+
151
160
/**
152
161
* @var array|null ISO codes for supported payment currencies.
0 commit comments