PV
Asked
Hello Support
I have few items have same problem.
it has quantity in stock but when we make sale it error and alert:
Exampl : " The quantity is out of stock for WD My Passport 4TB USB 3.0 External "
I also attached the screenshot
please help what could I do or verify about this issue?
Thank you
I have few items have same problem.
it has quantity in stock but when we make sale it error and alert:
Exampl : " The quantity is out of stock for WD My Passport 4TB USB 3.0 External "
I also attached the screenshot
please help what could I do or verify about this issue?
Thank you
- PVAnswered**[Mian Saleem](/u/saleem)** Thank you
- PVAnswered**[Mian Saleem](/u/saleem)** OK, nice. it works.
I hope this will solved. - PVAnswered**[Mian Saleem](/u/saleem)** Hello Support,
it works on some items. but some items still cannot sale even we have stock quantity.
I really don't understand. - MSAnsweredHello,
Please let me know the code of such products so that I can check.
Thank you - PVAnswered**[Mian Saleem](/u/saleem)** We have just found one item, this one : 93163162
- PVAnswered**[Mian Saleem](/u/saleem)** it's OK. Thank you for your help.
- MSAnsweredHello,
I have checked. It's due to -ve purchased quantity. System only checks for +ve quantity.
You can change the previous code `$pi->quantity_balance > 0` to `$pi->quantity_balance != 0`
Thank you - PVAnswered**[Mian Saleem](/u/saleem)** I saw two places have this code, so I would replace both?
- MSAnsweredHello, [this one](https://support-tecdiary-net.s3.amazonaws.com/2670/Screen-Shot-2022-04-05-at-10.04.49-AM.png) only. Thanks
- PVAnswered**[Mian Saleem](/u/saleem)** OK thank you. I will update and test.
- Login to Reply