These corals (Tubastraea spp. or Sun Corals) are, as said above, completely non-photosynthetic. You don't need to put them anywhere out of the light as such but they do prefer areas with moderate water movement. You can 'train' them to open during the day - they're very beautiful when you get full polyp extension. Depending on how long they've been in the shop, they may have been without decent food for a while and lost some tissue. They need feeding to help them recover and regain nice, long tentacles to aid in prey capture.
I have two Tubastraea corals (one Sun Coral, one Black Sun Coral) and a Duncanopsammia axifuga, which is a related coral but with zooxanthellae (able to derive some energy from light). All of them have been rescued to some extent and so required heavy feeding in the beginning to beef them up. This can be bad for the main tank - lots of nutrients. One way around this is to have a small tank, bucket, container that you can fill with water from the main tank and immerse your coral in. You can keep it aerated with an airstone and target feed the polyps with meaty foods. I have used mysis shrimp and krill pellets with success, soaked in a little bit of liquid coral food and tank water beforehand.
When they don't have much to grab food with, placing the mysis shrimp or pellet directly on the pellet gives them a chance to eat. Having them isolated means you don't have to contend with water movement and greedy little fish/crabs, etc. Once the coral has had a feed, you can put it back in the main tank and throw the feeding water away.
I fed mine daily to help them regrow lost tissue and expand their polyp size. Try to feed at a regular time each evening and your coral will start to open up when the lights are on. Once the polyps can extend enough to grab food, you can feed them in the tank, blowing shrimp at them with a baster or pipette (but feed your fish first so they aren't too much competition).
I've posted my pic below of the recovery of my D.axifuga from arriving as live rock rubble in October to how he looks now, 3 months on.
Best of luck.
PS: Edited to post better pic.