1. The products are on the 2nd floor in section D.

2. The products are in section D on the 2nd floor.
--------------------
Are both grammatical? Which word order is better?

3 answers

Both are correct.

Perhaps sentence 1 is a tiny bit better since a person needs to get to the 2nd floor before he/she can find section D.
Thank you.
You're very welcome!