Parents can get the discounts when they buy devices for their children if their children are currently attending or have been accepted into a public or private Higher Education institution.
Where the purchase is made does not affect the total of the purchased products.
Apple spells this out in more detail in its terms and conditions.