Update getProductsByTerm Snippet