I was told from someone that you’re allowed to shave on Chol Hamoed and on Sefira, not a haircut but shaving only. Is that true, if not when are you allowed to shave please let me know. Thanks.
This is incorrect. Shaving is included in the prohibition of getting a haircut during these times. One may trim his mustache, but facial hair in general is prohibited.
See Shulchan Aruch O:C 531:5, Tosfos, Moed Katan 14a s”v menuda, Shmiras Shabbos Khilchisa Chapter 66, footnote 108. The various exceptions to the prohibition of shaving are enumerated in Shulchan Aruch O:C 531.
Also see here.