from Scottish glamer 'magic, enchantment', a variant of Scottish gramarye 'magic, enchantment, spell. Alteration of English grammar in a specialized use of that word's medieval sense of "any sort of scholarship, especially occult learning," the latter sense attested from c. 1500 in English. Scottish gramarye from French gramaire, from Latin grammatica and Ancient Greek γραμματικός. Scottish word was popularized in English by the writings of Sir Walter Scott (1771-1832). Sense of "magical beauty, alluring charm" first recorded 1840. As that quality of attractiveness especially associated with Hollywood, high-fashion, celebrity, etc., by 1939 [Harper's Etymonline], Scottish glamer, from earlier gramarye ; the Latin word grammatica (from which it derives) was often used in the Middle Ages to mean ‘scholarship, learning’, including the occult practices popularly associated with learning [OED]. alternative etymology connects Scottish word with Old Norse glámr poet. 'moon', name of a ghost, glámsýni 'glamour, illusion', literally “glam-sight”) [Zoëga 1910] probably from the same root as English gleam.
From hacer 'to make' (Latin facere) > hechizo (Latin factīcius) 'artificial', 'feigned, false', from this substantive 'artifact that is used in witchcraft'(the same evolution in Portuguese feitiço → French fétiche, English fetish) [Corominas, Pascual 1984, 3, 298-299]. Also Spanish hechicería, hechizo 'magic' and 'charm', hechicero, hechizador 'magician' and 'seduser'.
to put (someone or something) under a spell
The princess had been enchanted by a magician to sleep for a hundred years "The princess had been enchanted by a magician to sleep for a hundred years"
to fill (someone) with great delight; charmfill (someone) with great delight; charm
The teacher was enchanted by the little girl sweet voice. "The teacher was enchanted by the little girl sweet voice."
Borrowed from Iranian. Compare Middle Persian hwmʾy, humāy 'a bird of good omen', Avestan humaiia, humāiia 'blessed', Sanskrit su-māyá 'having excellent counsels or plans, very wise', Persian humāyūn 'blessed, lucky'. All composed of *māyā- 'blessing, happiness' and the prefix *hu- 'good'.