One may acquire on behalf of a minor, even a one-day-old, and this is an enactment of the sages so that one who wishes to acquire for him—since he himself lacks the legal capacity—another may acquire on his behalf. Similarly, one may acquire on behalf of an adult; even though he has legal capacity himself, nevertheless another may also acquire for him. One may acquire whether in his presence or not in his presence, for it is a great principle: one may acquire for a person not in his presence. We do not say perhaps this man for whom they are acquiring is one who hates gifts and this is not a benefit for him, for we follow the majority of people. Furthermore, in every matter of benefit and liability, we follow the majority of benefit in the matter, even if there is also a minority of liability in this case, and similarly the reverse [as is evident from Tosafot Gittin 13a, s.v. "Avda"].
A shoteh does not acquire for himself, and certainly not for others, even when another's mind conveys it to him, for he has no mind at all; he is like a minor who has not yet reached the stage of "receiving a nut and taking it." However, one who conveys to a shoteh through a person of sound mind has acquired, and it is no worse than a one-day-old infant. But if they acquired for him through a minor or a cheresh, he does not acquire, for they cannot acquire for others. A cheresh acquires for himself but not for others, for he is like a minor who has reached the stage of "receiving a nut and taking it"; therefore, when another's mind conveys to a cheresh, he acquires by Torah law, and in the case of a find, he acquires for the sake of the ways of peace. Similarly, a shoteh acquires a find for this reason, as I wrote in siman 270 [and from the cheresh there is proof for what I wrote in section 17, and study it well].
There is one who says that one cannot acquire for a shoteh unless he is "sometimes healthy and sometimes a shoteh," for then one may acquire for him even during his period of insanity, and he is like a minor who will eventually come to have a mind; but one who is always a shoteh, one cannot acquire for him [Ktzot HaChoshen]. This is not implied by all the poskim; on the contrary, since the Tur wrote that one may acquire for a shoteh, even a one-day-old acquires—and behold, when he is a one-day-old it is not known that he will be "sometimes healthy" [and it is forced to say that it refers only to a minor; also from the proofs of the Maggid Mishneh in chapter 4 of Hilchot Zechiyah from Yevamot 113, this is explicitly implied, and study it well].
A minor who conveys to an adult through an adult does not acquire; for even though the adult becomes like the agent of the adult, nevertheless he must also be the agent of the one conveying, for it is impossible to acquire for one's fellow unless he becomes the agent of the owner of the money, and a minor cannot appoint an agent [Machaneh Ephraim, and see Tosafot Bava Metzia 71b, s.v. "Bishlama"]. Also, a non-Jew who conveyed to an Israelite through an Israelite is not effective [Netivot HaMishpat].
Know that in the Yerushalmi Peah chapter 4, it is implied that a person cannot acquire for his fellow unless the acquirer could also acquire it for himself; according to this, an Israelite cannot acquire priestly gifts on behalf of a kohen. However, in our Talmud it is explicitly explained to the contrary [ibid.]. Indeed, even the conclusion of the Yerushalmi is not so, see there. From what has been explained, that when another's mind conveys to a minor he acquires by Torah law, we learned that one may give to a minor kohen the redemption of the firstborn and similarly other priestly gifts [ibid.].
There are those who learned from what has been explained—that one may acquire for a person not in his presence—that a maidservant is permitted to separate challah from the dough of the mistress of the house when she is not at home at that time, or if she is there but is not awake. Our teacher, the Rema, wrote thus in Yoreh Deah siman 328. There are those who disagree with this, for perhaps her will is to perform the mitzvah herself and she would separate after baking; even though initially it is a mitzvah to separate from the dough, nevertheless it is better for her to separate herself from baked bread than for her agent to separate from her dough, for "a mitzvah is greater when performed by him than by his agent" [Ktzot HaChoshen]. This is also implied by our teachers, the authors of the Tosafot [Nazir 12b]. It is only called a "benefit" when he acquires some object through this, but not when the mitzvah is performed by others. However, if the mistress of the house will delay and it is possible that the household members will eat without challah, it is certainly a benefit for her and they separate without her. Even though we hold that regarding challah outside the Land of Israel one may continue eating and separate afterward, nevertheless one should not rely on this initially; perhaps this was also the intention of our teacher, the Rema, in such a case.
In Yoreh Deah siman 305 it was explained that there are those who learned from this that one may acquire for a minor, such that for a firstborn minor whose father died, the beit din may redeem him, for it is a benefit for him. There are those who disagree with this. However, with the minor's own money, it appears that it is not effective; it is well when they acquire money for him, they acquire for him, but with his own money this is not a benefit, for he himself will fulfill the mitzvah when he grows up [Ktzot HaChoshen]. This appears to be the primary view.
זכין לקטן אפילו בן יום אחד ותקנת חכמים הוא כדי שמי שירצה לזכות לו ובעצמו אין לו יד שיהא אחר יכול לזכות בעדו וכן זכין לגדול אף שיש לו יד בעצמו מ"מ גם אחר זוכה בשבילו וזכין בין בפניו בין שלא בפניו דכלל גדול הוא זכין לאדם שלא בפניו ואין אומרים שמא זה האיש שבשבילו זוכין הוא שונא מתנות ואין זה זכות לו דהולכין אחר רוב בני אדם ועוד דבכל זכות וחובה הולכין אחר רוב הזכות שבדבר אע"פ שיש בעניין הזה גם מיעוט חובה וכן להיפך [כ"מ מתוס' גיטין י"ג. ד"ה עבדא] והשוטה אינו זוכה לעצמו וכ"ש לאחרים אפילו בדעת אחרת מקנה אותו דאין לו דעת כלל והוא כקטן שאינו מגיע עדיין לאגוז ונוטלו אבל המזכה לשוטה ע"י בן דעת זכה ולא גרע מתינוק בן יומו אבל אם זיכו לו ע"י קטן או חרש אינו זוכה דאין זוכין לאחרים והחרש זוכה לעצמו ולא לאחרים דהוא כקטן שהגיע לאגוז ונוטלו ולכן כשדעת אחרת מקנה לחרש זוכה מן התורה ובמציאה זוכה מפני דרכי שלום וכן השוטה זוכה במציאה מטעם זה כמ"ש בסי' ע"ר [ומחרש ראיה למ"ש בסעיף י"ז ודו"ק] ויש מי שאומר דאין זכין לשוטה אא"כ הוא עיתים חלים ועיתים שוטה דאז זכין לו גם בשעת שטיותו והוא כקטן שיבא לכלל דעת אבל מי שהוא שוטה תמיד אין זכין לו [קצה"ח] ולא משמע כן מכל הפוסקים ואדרבא מדכתב הטור שזכין לשוטה אפילו בן יומו קנה והרי כשהוא בן יומו אינו ידוע שיהא עיתים חלים [ודוחק לומר דקאי רק אקטן וגם מראיות הה"מ בפ"ד מזכיה מיבמות קי"ג משמע להדיא כן ודו"ק] וקטן שמזכה לגדול ע"י גדול אינו זוכה דאע"ג דהגדול נעשה כשלוחו של גדול מ"מ הא צריך להיות גם שלוחו של המזכה דא"א לזכות לחבירו אא"כ נעשה שלוחו של בעל הממון וקטן אינו עושה שליח [מח"א וע' תוס' ב"מ ע"א: ד"ה בשלמא] וגם עכו"ם שזיכה לישראל ע"י ישראל אינו מועיל [נה"מ] ודע דבירושלמי פאה פ"ד משמע שאין אדם יכול לזכות לחבירו אלא כשהזוכה יכול לזכות בו גם בשביל עצמו ולפ"ז אין יכול ישראל לזכות בעד כהן מתנות כהונה ובש"ס דילן מבואר להדיא ההיפך [שם] אמנם גם מסקנת הירושלמי לא כן הוא ע"ש ומזה שנתבאר דבדעת אחרת מקנה לקטן זוכה מדאורייתא למדנו שיכול ליתן לכהן קטן פדיון הבן וכן שארי מתנות כהונה [שם] ויש שלמדו ממה שנתבאר דזכין לאדם שלא בפניו שרשאית המשרתת להפריש חלה מעיסת בעלת הבית כשאינה שעה זו בביתה או שישנה ואינה ניעורה וכ"כ רבינו הרמ"א ביו"ד סי' שכ"ח ויש חולקין בזה דאולי רצונה לעשות המצוה בעצמה ותפריש לאחר אפיה ואף דלכתחלה מצוה להפריש מן העיסה מ"מ מוטב לה להפריש בעצמה מלחם אפוי משתפריש שלוחה בעיסתה דמצוה בו יותר מבשלוחו [קצה"ח] וכן משמע מרבותינו בעלי התוס' [נזיר י"ב:] וזכות לא מקרי אלא כשזוכה באיזה דבר ע"י זה אבל לא כשהמצוה תיעשה ע"י אחרים מיהו אם הבעלת הבית תתמהמה ויכול להיות שיאכלו מבני הבית בלא חלה וודאי דזכות הוא לה ומפרישין בלעדה ואע"ג דקיי"ל חלת חו"ל אוכל והולך ואח"כ מפריש מ"מ אין לסמוך על זה לכתחלה ואולי גם כוונת רבינו הרמ"א בכה"ג וביו"ד סי' ש"ה נתבאר שיש שלמדו מזה דזכין לקטן שבכור קטן שמת אביו יכולין ב"ד לפדותו דזכות הוא לו ויש חולקין בזה מיהו במעותיו של הקטן נראה דאינו מועיל דבשלמא כשמזכים לו מעות זכין לו אבל במעות עצמו אין זה זכות דבעצמו יקיים המצוה כשיגדל [קצה"ח] וכן נראה עיקר: