basicproductsearch final; undefined variable issue fixed