As I live in California, I do not know about the laws in Texas, but here in California there is no age restriction, as far as I know, on buying condoms.
Perhaps it's the same in Texas and it's just the pharmasist doesn't want to encourage young people to have sex by providing them with condoms.
Maybe if you tell him that you don't wnat to have sex, but you need them for a school project.