The product of partial theta functions

In this paper, we prove a new identity for the product of two partial theta functions. An immediate corollary is Warnaar's generalization of the Jacobi triple product identity.