Most likely your water hardness, swordtails need hard water. If you have soft water the swordtail won't be very happy.
Never listen to your local fish shop, they will sell you anything to make money. Also I think your Swordtail may of caught a parasite. That's probably why it's not eating...