0

I'm not sure if anyone can help? I've been trying to solve this problem for some time and I've narrowed it down.

I am currently having a problem when disabling a product in Magento 2. When I disable a product I get the following error

Notice: Undefined index: quantity in /home/customer/www/domain.co.uk/public_html/vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php on line 83

This when brings up the following Screenshot in Catalog view https://pasteboard.co/Jhs7D2g.png

Link 83 https://pasteboard.co/Jhs95Pm.png

For a temporary fix, I can log in to the database and change the SKU in catalog_product_entity table. Just by adding a random number on the end.

But if I then edit the SKU and remove the random digit and enable the product this fixes the problem until I disable it again.

Tldr: When a product is disabled this shows the above error

4
  • did you try to run bin/magento indexer:reindex ?
    – SebastianT
    Dec 10, 2020 at 13:33
  • Hi Seb, thanks for your suggestion, I've tried reindex however this doesn't work. I'm slowly running out of ideas for a fix
    – Adam Gill
    Dec 10, 2020 at 23:25
  • i would suggest you to try disable custom modules and see if this still happen
    – SebastianT
    Dec 11, 2020 at 8:07
  • Hi Seb, sadly this didn't work either. If I can remember this problem has been happening for a while now. But I've normally managed by fixing a product one at a time. However this is now happening with 20+ products.
    – Adam Gill
    Dec 11, 2020 at 15:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.