PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.11k stars 4.79k forks source link

Abandoned carts permit selling articles even stock is 0 #11523

Closed Aplastaneitor closed 5 years ago

Aplastaneitor commented 5 years ago

Describe the bug If you change the quantity of an article to 0 when the article is in the cart, the abandoned cart reflects that change but the customer is able to finish the order even the quantity is 0.

To Reproduce Steps to reproduce the behavior: As a customer:

  1. Add a product to the cart.
  2. Close session or wait 30 minutes so the cart turns to abandoned status. As a backoffice user:
  3. Change the quantity of the same product to 0 (I do it by importing it in csv). As a customer again:
  4. Log in.
  5. Finish the order, you will be able to finish it even the stock is 0.

Screenshots Added an actual abandoned cart from my website. captura

Additionnal information PrestaShop version: From 1.6 to 1.7.4.3 PHP version: 7.2

khouloudbelguith commented 5 years ago

Hi @Aplastaneitor,

I did not manage to reproduce the issue after upgrade from 1.6 to 1.7. I attached a video record. Nov 27 2018 9_22 AM.webm.zip Thanks to check & feedback.

Aplastaneitor commented 5 years ago

Hi @khouloudbelguith,

Thanks for taking the time to try it. You did exactly what i did but it didn't fail to you. I'll try to reproduce and record it but it is strange because you did it perfect and didn't work as I expected. I'm very busy this week but i'll try to take a moment to do it and record it. I had at least two orders (real orders, with real customers I mean) that had this casuistry. There has to be another step that I maybe skipped.

As I said, thank you very much, i'll keep you posted.

khouloudbelguith commented 5 years ago

@Aplastaneitor, thanks! Waiting for your feedback.

khouloudbelguith commented 5 years ago

Hi @Aplastaneitor,

Any news about your issue? Thanks!

khouloudbelguith commented 5 years ago

Hi @Aplastaneitor,

Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details. Thanks!