Jump to content

What defines an 'abandoned cart'?


Recommended Posts

At what point does PS mark a cart as 'abandoned'?

 

Is it when the customer browses away from the website? Do they have to close the browser? Does it take some amount of time after doing the above before the cart is marked as abandoned?

 

My store is marking carts as abandoned, so that's working... but I'm having difficulty creating one myself for testing purposes. So I'm trying to figure out what I need to do to make it mark a cart as abandoned.

 

I'm not using the email address I use for admin purposes, so it should be seeing it as a normal customer.

 

Thanks,

Jim

Link to comment
Share on other sites

  • 2 months later...

I searched the code and found the following on line 46 (in PrestaShop v1.6.1.11) of controllers/AdminCartsController.php:

IF (IFNULL(o.id_order, \''.$this->l('Non ordered').'\') = \''.$this->l('Non ordered').'\', IF(TIME_TO_SEC(TIMEDIFF(\''.pSQL(date('Y-m-d H:i:00', time())).'\', a.`date_add`)) > 86400, \''.$this->l('Abandoned cart').'\', \''.$this->l('Non ordered').'\'), o.id_order) AS status, IF(o.id_order, 1, 0) badge_success, IF(o.id_order, 0, 1) badge_danger, IF(co.id_guest, 1, 0) id_guest';

So it appears to be 86400 seconds (1 day) after a cart is created that it is considered abandoned.

 

Since it is hardcoded, there is no option in the Back Office to change it.

Link to comment
Share on other sites

  • 2 years later...

I know this is an old thread, but the code doesnt seem to line up with the actual behavior of the BO... I mean. I have a mix of "non ordered" and "Abandoned carts" -- and the time dont add up. I have some recent (yesterday) that are non order, and one that is abandoned. Then another abandoned from the 13th and then everything older (including other carts from the 13th) are non ordered... so could "abandoned carts" be a time slot of carts?

Link to comment
Share on other sites

  • 6 months later...
On 3/1/2017 at 2:59 PM, rocky said:

I searched the code and found the following on line 46 (in PrestaShop v1.6.1.11) of controllers/AdminCartsController.php:


IF (IFNULL(o.id_order, \''.$this->l('Non ordered').'\') = \''.$this->l('Non ordered').'\', IF(TIME_TO_SEC(TIMEDIFF(\''.pSQL(date('Y-m-d H:i:00', time())).'\', a.`date_add`)) > 86400, \''.$this->l('Abandoned cart').'\', \''.$this->l('Non ordered').'\'), o.id_order) AS status, IF(o.id_order, 1, 0) badge_success, IF(o.id_order, 0, 1) badge_danger, IF(co.id_guest, 1, 0) id_guest';

So it appears to be 86400 seconds (1 day) after a cart is created that it is considered abandoned.

 

Since it is hardcoded, there is no option in the Back Office to change it.

The code is same in PS 1.7.6.4.

Would it be possible to change the value 86400 by 3600 ? We would prefer to consider that the cart is abandoned after one hour only

 

Thx

 

Link to comment
Share on other sites

  • 3 years later...

In PrestaShop, a cart is marked as abandoned when a customer adds products to their cart but does not complete the checkout process. The cart is considered abandoned when the customer leaves the website or closes their browser without completing the purchase.

The time it takes for the cart to be marked as abandoned depends on the configuration settings in PrestaShop. By default, PrestaShop will mark a cart as abandoned after 15 minutes of inactivity, but this can be adjusted in the configuration settings.

If you are having difficulty creating an abandoned cart for testing purposes, you can try adding products to your cart and then leaving the website or closing your browser without completing the purchase. Wait for the amount of time specified in your PrestaShop configuration settings and check if the cart has been marked as abandoned.

It is also important to note that in order for a cart to be marked as abandoned, the customer must have entered their email address at some point during the checkout process. If the customer did not enter their email address, the cart cannot be marked as abandoned.

Link to comment
Share on other sites

8 hours ago, George_Mebz said:

In PrestaShop, a cart is marked as abandoned when a customer adds products to their cart but does not complete the checkout process. The cart is considered abandoned when the customer leaves the website or closes their browser without completing the purchase.

The time it takes for the cart to be marked as abandoned depends on the configuration settings in PrestaShop. By default, PrestaShop will mark a cart as abandoned after 15 minutes of inactivity, but this can be adjusted in the configuration settings.

If you are having difficulty creating an abandoned cart for testing purposes, you can try adding products to your cart and then leaving the website or closing your browser without completing the purchase. Wait for the amount of time specified in your PrestaShop configuration settings and check if the cart has been marked as abandoned.

It is also important to note that in order for a cart to be marked as abandoned, the customer must have entered their email address at some point during the checkout process. If the customer did not enter their email address, the cart cannot be marked as abandoned.

Hi thanks for the reply, but my prestashop take 24h to mark a cart as abandoned. And is not possible to change in settings. Or where I can check this?

Thanks!

Link to comment
Share on other sites

In PrestaShop, a cart is marked as abandoned when a customer adds products to their cart but does not complete the checkout process. The cart is considered abandoned when the customer leaves the website or closes their browser without completing the purchase.

The time it takes for the cart to be marked as abandoned depends on the configuration settings in PrestaShop. By default, PrestaShop will mark a cart as abandoned after 15 minutes of inactivity, but this can be adjusted in the configuration settings.

If you are having difficulty creating an abandoned cart for testing purposes, you can try adding products to your cart and then leaving the website or closing your browser without completing the purchase. Wait for the amount of time specified in your PrestaShop configuration settings and check if the cart has been marked as abandoned.

It is also important to note that in order for a cart to be marked as abandoned, the customer must have entered their email address at some point during the checkout process. If the customer did not enter their email address, the cart cannot be marked as abandoned.

 

I apologize for any confusion earlier. In Prestashop, the default time for a cart to be marked as abandoned is 24 hours. Unfortunately, it is not possible to change this setting within the Prestashop settings. However, you may be able to modify this setting through code customization or by using a third-party module. I recommend consulting with a Prestashop developer or community forum for more specific guidance on how to modify this setting.

Edited by George_Mebz
Might help you more (see edit history)
Link to comment
Share on other sites

Il y a 12 heures, George_Mebz a dit :

In PrestaShop, a cart is marked as abandoned when a customer adds products to their cart but does not complete the checkout process. The cart is considered abandoned when the customer leaves the website or closes their browser without completing the purchase.

The time it takes for the cart to be marked as abandoned depends on the configuration settings in PrestaShop. By default, PrestaShop will mark a cart as abandoned after 15 minutes of inactivity, but this can be adjusted in the configuration settings.

If you are having difficulty creating an abandoned cart for testing purposes, you can try adding products to your cart and then leaving the website or closing your browser without completing the purchase. Wait for the amount of time specified in your PrestaShop configuration settings and check if the cart has been marked as abandoned.

It is also important to note that in order for a cart to be marked as abandoned, the customer must have entered their email address at some point during the checkout process. If the customer did not enter their email address, the cart cannot be marked as abandoned.

It’s important to understand what chat gpt give you.

And if you are not sire, take time to validate it before copying in the forum.

everybody can do the same thing on chat gpt but everybody can’t validate information.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...