You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »


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

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.



Getting started

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


  • No labels