added purchase and sales badges to template