This might be useful. Add a user specific column to the products sheet where the user can select a quantity, attach it to a template column, and include it as part of the description for the buy button.