My sister has grown them from grocery store pineapples in the past, so I asked her how she did it and this was her response:
Twist the top off, don't cut it. Pull off some of the bottom leaves. You should see some white knobby things. Dunk it in rooting powder and stuff it in dirt. These get very large and have prickles.
I do think for quality fruit, you'll need plenty of sunshine, which is in short supply in my region, so I've never tried this myself.