You see the signs "no shoes no shirt no service".
You should boycott such places.
How many laws does it take to make one free?
But if you find yourself barefoot in such a place with a powerful hunger, in the company of parents you like, or for other reasons are unable to yell at the proprietors and stomp out, just put bags on your feet and they must serve you.
Thes bags will fit the definition of shoes in most jurisdictions.
If you are fleeing this country to become a barefoot refugee, consider Australia, where shoes generally not required, or Indonesia, where feet are considered cleaner than shoes and some hospitals even are barefoot.