Question: Advice to avoid data losing

Advice to avoid data losing

Good morning, i have something to ask. I have a thousand of products and sometimes in one purchase there will be alot of products. I read on internet that you can change the input max value

EH

Einnlleinhatt Ha

Asked
Good morning, i have something to ask. I have a thousand of products and sometimes in one purchase there will be alot of products. I read on internet that you can change the input max value on php.ini file, can you give me advice to how much should i change ? Or i can just change for example if i have 5k products i change the value to 5k too ? Also do i need to change the max input var only or there are any other setting ?
  • MS

    Mian Saleem

    Answered
    Hello,

    You will need to set higher value. If your purchase has 5k products then you might need to set `max_input_vars` to 5k x 8 = 40k or may be more higher.

    ---

    **Why some products are missing from order when I add 100+ products?**

    There is no restriction in SMA code on the number of order items. If you are having such issue, please check your php configuration file (php.ini) for `max_input_vars` and set it to higher number i.e, 10000. You might need to increase `max_input_time` and `max_execution_time` too.

    ---

    Thank you
  • EH

    Einnlleinhatt Ha

    Answered
    Should i do the x8 too for the max_input_time and max_execution_time ?
  • MS

    Mian Saleem

    Answered
    Hello,

    No. I don't think so. You just change the input vars and try. If you will have issue then you increase those values but not 8 times higher.

    Thank you
  • Login to Reply