Until now, the maximum lifetime of a cart could only be defined at sales channel level. This new feature provides you the possibility to override this default value at product level, meaning that you can let your internet users more time to buy a season ticket for example.

Solution

As before, the lifetime of the cart is defined by the order expiry delay and the order maximum lifespan

Order expiry delay

The expiry delay is reset each time an item is added to the cart.

Order maximum lifespan

The order maximum lifespan is never reset. Independently of the changes brought to the cart, the order will be abandoned when the order maximum lifespan is reached.

Setting at sales channel level

The setting at sales channel level hasn't been changed

As before, the minimum allowed duration for both parameters is 5 minutes.

Setting at product level

You can set an order expiry delay and an order maximum lifespan for any kind of product

The order expiry delay and order maximum lifespan of a composed product is defined by the composed product itself (as in the example above) and not by the simple products contained in the composed product.

Computation of the cart expiry time

  • Compute the expiry time for each item in the cart
    • Consider the order expiry delay of the product if it has been defined. Else, consider the order expiry delay of the sales channel.
    • Consider the order maximum lifespan of the product if it has been defined. Else, consider the order maximum lifespan of the sales channel.
    • The expiry time is the minimum of the order expiry delay and order maximum lifespan computed above
  • Consider the maximum expiry time computed above

Example of computation

  • The cart contains two products. Product 1 is added to the cart before product 2.
  • Product 1 has an order expiry delay of 10 minutes and a maximum lifespan of 30 minutes. According to this product, the cart will be abandoned 10 minutes after product 1 has been added to the cart.
  • Product 2 has an order expiry delay of 15 minutes and a maximum lifespan of 20 minutes. According to this product, the cart will be abandoned 15 minutes after product 2 has been added to the cart or 20 minutes after order creation (i.e. 20 minutes after product 1 has been inserted to the cart), whichever event occurs first. For example, if product 2 has been added to the cart very shortly after product 1, the cart will be abandoned 15 minutes after product 2 has been added to the cart.
  • Considering the whole order, the cart will be abandoned 15 minutes after product 2 has been added to the cart.

Abandoning the cart

When the global maximum duration is reached, the whole cart will be abandoned. There is no partial removal of items which maximum duration has been reached.


Scope

This feature is only available on online sales channels

Be aware of some potential behaviours


Sudden reduction of order lifespan

  • Consider that you've defined a season ticket with a large order lifespan and the internet user has added that season ticket and some other product to his cart
  • If the internet user removes the season ticket from the cart, the maximum lifespan will decrease suddenly and the cart may be abandoned before the internet user has the time to pay the other product. He while need to start the sales process again.

Cart duration of more than 30 minutes (already existing behaviour)

  • If the duration exceeds 30 minutes (for example 45 minutes), the Ticket Shop will still display a duration of 30 minutes. However, after this duration has elapsed, the Ticket Shop will display the remaining duration (in our example: 15 minutes) and discard the cart once the entire duration available has elapsed.


Getting started

You don't have anything to do. This feature is enabled by default.