Congruences for some partition functions by using dissections of q products and ramanujan s theta functions