Quotes: truncated rows after 50 inserted products...solved

I have encountered an annoying problem in the Quote module.

If the quote included more than 50 products, the list of rows was truncated to 50 lines, the total reported a calculation error (empty or the previous value).

Looking at the code you can see how all the values are passed through $ _POST.

This suggested the solution: in php.ini it was enough to increase the maximum number of vars passed through $ _POST, as follows:

// php.ini file
max_input_vars = 10000

Before I looked at the code I looked for suggestions but no suggestion helped fix it.

However, a useful reference is this

I hope this is useful … I really appreciate the direct and indirect help I receive through the forum!