Check out PHPLIB it's not specifically for PostgreSQL but it will workwithit. (I've never tried their shopping cart so I don't know how good it is).
http://phplib.shonline.de/