Prestashop: [BOOM-5963] Shopping cart is created automatically after login

Created on 22 Aug 2018  ·  13Comments  ·  Source: PrestaShop/PrestaShop

This issue has been migrated from the Forge. Read the original ticket here.

  • _Reporter:_ Centoasa
  • _Created at:_ Thu, 12 Jul 2018 14:48:03 +0200

When a customer sign in, an empty cart of 0€ is created

The customer follow-up email being sent also for abandoned cart with 0 amount, so when customer login and ceck own order (status, amount, messages).


Describe the bug

When a customer sign in, an empty cart of 0€ is created.

Expected Behavior

The cart should be created only when the customer adds a product.

Steps to reproduce

  1. BO > SELL > Orders > Shopping Carts > check the list
  2. FO > login as client
  3. BO > refresh the Shopping Carts list > a new cart with the client name is created

Screenshots

image

Additional information

  • PrestaShop version: 1.7.7.0 & develop
  • PHP version: 7.2.34
1.7.4.0 1.7.6.0 1.7.7.0 BO Bug Minor Shopping carts To Do

All 13 comments

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 12 Jul 2018 15:02:19 +0200

Hi Remigio,

Could you please add steps to reproduce the issue in a new comment.

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ centoasa
  • _Created at:_ Thu, 12 Jul 2018 16:03:40 +0200

I've the follow-up module and related cron, every morning at 9.00 send email.

As you can see in the attached image, for example the id 145498 was the customer have seen own order to ceck the status.

Obviously when a customer enters only to check his order, his cart is empty; prestashop interprets it as an abandoned cart and then the follow-up module sends the email.
This is rather boring for many customers who check the status of their order every day and receive a discount voucher the next day.

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 12 Jul 2018 16:58:47 +0200

Hi Remigio,

I attached a video record.
Jul 12 2018 4_57 PM.webm
Thanks to check and feedback.

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ centoasa
  • _Created at:_ Thu, 12 Jul 2018 17:23:13 +0200

please see my video

https://www.useloom.com/share/722f695619204f4c8545be674427e530

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 12 Jul 2018 17:38:12 +0200

Hi Remigio,

Thanks for your feedback.
I manage to reproduce the issue.
To reproduce it, you need to sign in again each time => then a new shopping cart will be created automatically without adding any product to cart.
We will see how to fix it.

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ centoasa
  • _Created at:_ Thu, 12 Jul 2018 17:44:33 +0200

as you can see, I've open a new private session on chrome. So I think the issue is related to cookie (maybe)

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 12 Jul 2018 17:57:14 +0200

Hi Remigio,

Yes, it could be.
Thanks!
We will see how to fix it.

Best regards, Khouloud

Same issue with PS1.7.6.x
https://drive.google.com/file/d/1ZdBXuykhwuGVRELNVcLrGV-sTT9zeeiM/view

Hi Khouloudbelguith, Hi everyone,

I have a very similar problem with my Prestashop. Every time someone signs in, a cart is created, even if no product was added. Please note that sometimes several empty (or not) baskets are created for a single user. Is there anyone who's come up with a solution?
Capture d’écran 2020-08-18 à 15 33 03

Thanks in advance,
Théo

Hi @Juranville,

Sorry, this issue is not fixed yet.

Thanks!

Hi @Juranville,

Sorry, the issue is not fixed yet, PrestaShop 1.7.6.8

Thank you! 👍

image

Hello @marionf

I managed to reproduce the issue with PS1.7.7.0-rc.1+build.4 and develop.

Steps to reproduce:

  1. BO > SELL > Orders > Shopping Carts > check the list
  2. FO > login as client
  3. BO > refresh the Shopping Carts list > a new cart with the client name is created

Thanks!

I think it breaks statistic too....

Was this page helpful?
0 / 5 - 0 ratings