How can I get a list of all category names and their ID's from a store on Magento 2.2?
For example something like this
- Clothes 2
- Shirts 5
- T-shirts 7
- T-shirts 8
- Shoes 10
- Sport shoes 12
It can be in any format and displayed anywhere on the site as long as I can copy it as text. I will disable this functionality after, so I don't mind if it's a quick and dirty way as it's never going on the live site.
Basically I'm trying to find a way to get all product names and ID's without having to individually click through every item in the Magento category tree.