My previous post on how to get popular products from WP eCommerce is a little dated and doesn’t actually work too well. (in fact my client updated after being specifically told not to update wp ecommerce. Poor I know but what’r'ya gonna do?)
SO I’ve re-written most of the code and now it can be updated and has all the correct details and should work with variations. See the code below:
