I am working on a project where I need to display the list products on list page. I have added the products on local server where I am getting them on front-end. But when I create products on live site. I am getting

"Available Stock:0"

in Magento 2.3.

When I went to check the n.o of products in list.phtml using count() function it return 0. But on local it return right value and display the products as well.

I have tried Reindexing as well but got no luck. Kindly help me out!!! If you need further clarification please let me know.

  • There must be indexing issue, please run re-index and try it again – Aasim Goriya Feb 11 at 8:19
  • Thanks for the prompt reply. Yes, I have tried that multiple time. But no luck – Shahzad Ahmed Feb 11 at 8:19
  • please check your log files, check if any error over there – Aasim Goriya Feb 11 at 8:21
  • Possibly, what could be the error. Do you have any idea? – Shahzad Ahmed Feb 11 at 8:33
  • No I have no idea but you can get errors when you load category page if any – Aasim Goriya Feb 11 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.