Get quote function, including categories