Question: Editing Purchase Cause Problem

Editing Purchase Cause Problem

I make a purchase yesterday for 50 items, and today i edit it to add another 5 items. The total is 55 items but after i submit it the total is 50 items and there are some prev items gone fro

WC

Willy CN

Asked
I make a purchase yesterday for 50 items, and today i edit it to add another 5 items. The total is 55 items but after i submit it the total is 50 items and there are some prev items gone from my purchase/stock.
  • MS

    Mian Saleem

    Answered
    That might be due to your php config for `max_input_vars`. For Docs

    > 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.
  • WC

    Willy CN

    Answered
    How much for max_input_time and max_execution_time do i need for 10000 max_input_vars ?
  • MS

    Mian Saleem

    Answered
    Only require if you still have issue after `max_input_vars `. May be just double (current value x 2)
  • WC

    Willy CN

    Answered
    Is this value alright ?
  • MS

    Mian Saleem

    Answered
    Please let max execution time to 300 and max input vars can be increased if you got same issue again.
  • WC

    Willy CN

    Answered
    I have an issue again where i tried to edit my purchase where it has 80 items but in the editing page it only show 2 items.
  • WC

    Willy CN

    Answered
  • MS

    Mian Saleem

    Answered
    I can't think the cause. Please test it in live demo and let me know the step to reproduce it.

    You post a private reply with your site link and login derails to have look.
  • MS

    Mian Saleem

    Answered
    Hello,

    Have you deleted any products after purchase. I am not sure but it I guess it's due to a deleted product. I will lock the edit if product not found in next update.
  • WC

    Willy CN

    Answered
    Im not sure about that, what about changing the product name or barcode ? I will my employee more about it.
  • Login to Reply