Done it in loads of jobs.
You need to make sure that your feet and arches are properly supported, which means good, supportive shoes (preferably lace ups) and possibly orthotics if your ankles drop inwards and/or your knees turn off centre because of things like weak leg muscles.
Once you have that stable foundation, your entire body is in better alignment - ankles, knees, hips, pelvis, spine, head - which reduces strain and enables you to stay on your feet for longer without pain. Wearing little slip on shoes makes it more likely that your stance is unstable and you're trying to hold them on rather than walking freely.
In addition to this, you need to look at your posture.
You might be pushing your head forwards and increasing the strain on your neck.
You might be overarching your lower back, rather than tucking your pelvis into the correct position (also more likely if you have weak stomach/core muscles).
You could be landing heavily on your heels when you walk, rather than landing softly on your midfoot, which sends further impact up your body.
You could be doing all these things.
Humans are meant to be capable of almost constant activity, so finding it that painful suggests that something isn't right - I have medical conditions that affect my joints and tendons, but with suitable footwear, strength building exercise and looking after my posture, even I can manage to be on my feet for extended periods of time.