AnarchyJim Posted December 8, 2016 Share Posted December 8, 2016 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 More sharing options...
bellini13 Posted December 8, 2016 Share Posted December 8, 2016 Pretty sure its just a cart that has not converted to an order after a duration of time. Without digging into code, I don't know the duration Link to comment Share on other sites More sharing options...
Jignesh.aakoliya Posted December 9, 2016 Share Posted December 9, 2016 Hi,Customer adds products in cart and doesn’t complete checkout process and leaves website. Such cart are considered as abandoned cart by Prestashop after some threshold time.You can send Abandoned cart emails to pull back reluctant customers Thanks Link to comment Share on other sites More sharing options...
areaweb Posted February 27, 2017 Share Posted February 27, 2017 I'd also like to know this, is there an option in the back-end? Where does one find this value in the code for when a cart becomes 'abandoned'? Link to comment Share on other sites More sharing options...
rocky Posted March 1, 2017 Share Posted March 1, 2017 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 More sharing options...
rekkid Posted September 20, 2019 Share Posted September 20, 2019 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 More sharing options...
superskyman100 Posted March 31, 2020 Share Posted March 31, 2020 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 More sharing options...
[email protected] Posted April 13, 2023 Share Posted April 13, 2023 (edited) Any news on this? I would to change the time to 1 hour to consider abandoned. Thanks! EDIT: I modified the number, and seems work fine. Now the label "carrito abandonado" show earlier. Thanks! Edited April 13, 2023 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
George_Mebz Posted April 13, 2023 Share Posted April 13, 2023 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 More sharing options...
[email protected] Posted April 13, 2023 Share Posted April 13, 2023 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 More sharing options...
George_Mebz Posted April 13, 2023 Share Posted April 13, 2023 (edited) 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 April 13, 2023 by George_Mebz Might help you more (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 14, 2023 Share Posted April 14, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now