I detected that some categories on my site don't show the correct products. Instead, show ALL products assigned to the root category. I made a test adding this to my list.phtml:


And I saw it return every time 2, that is the root category, instead of the current real category. What could it be?


  • Hello, I have just add you code in list.phtml and it is giving right current category id. could please share category structure you have ? – Pawan Feb 21 at 3:26

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.