Formal:
* Bonne chance pour vos cours de français! (Good luck with your French lessons!)
* Profitez bien de vos cours de français! (Enjoy your French lessons!)
Informal:
* Bon courage pour les cours de français! (Good luck with the French lessons!)
* Amuse-toi bien en cours de français! (Have fun in French class!)
More casual:
* Profite bien des cours! (Enjoy the lessons!)
* Passe un bon moment en cours! (Have a good time in class!)
The best option will depend on the context and your relationship with the person you're talking to.