Product Features

Ubercart gives you the option to create product "features", which allow you to associate product purchases with some type of event, for instance allowing access to a digital download (uc_file), or granting access to a site using roles and permissions (uc_roles).

You can attach multiple product features to a product, so you can have a product grant file download access and grant a role.