Go into 'Settings | Business Settings | Options' and remove "Auto Generate Product References" and insert number of characters you wish to allow for reference code (up to a maximum of 20 characters). Open the product details for each product and enter the code you require.