In this paper we set up a bivariate representation of partial theta functions which not only unifies some famous identities for partial theta functions due to Andrews and Warnaar, et al. but also unveils a new characteristic of such identities. As further applications, we establish a general form of Warnaars identity and a general $q$--series transformation associated with Bailey pairs via the use of the power series expansion of partial theta functions.