formating buy template