Normally they are ripe when the whole fruit has turned a nice red. If it still looks a bit green near the base I would let it go for a few more weeks. Having said that they still taste just fine if they are a little on the green side. "Prickly pears" are my most favourite fruits. Very fond childhood memories.