Jump to content

[SOLVED] Modify PS core - cutting functions in the last checkout step


grsinternet

Recommended Posts

Currently we have 13 million products on our PS 1.7.6.4. Product contains only ReferenceID and price.

Shop works fine, but the problem is when buyer has 3+ products in the cart. Then the last step of the checkout takes 5+ minutes. Often we get an error. This error is about "stock management". As we understand Prestashop tries to find products again to check Stocks and here it fails. But the "Stock Management" is Off everywhere in the Back-Office.

How to cut this checking function in PS core? Maybe there are other ways to fix that?

I'm attaching the screenshot of the error, when there are more then 3 products

Screenshot 2020-05-25 at 08.15.47.png

Edited by grsinternet (see edit history)
Link to comment
Share on other sites

19 hours ago, ndiaga said:

Hi,

This  is  not   a  PrestaShop   core  issue   but   a  module  issue .

The  bug  is  comming  from   modules/ps_wirepayment/controllers/front/validation.php  

Thank you for your contribution! Not sure or issue was were you have noticed, but I have shared your answer with a team and they have fixed. Later I'm going to share more details. Thank you!

Update from Dev:
There was a problem with checking quantities. In one place there was a condition with stock management but below the quantity was still checked and not taking of stock management status.

Edited by grsinternet (see edit history)
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...