wp e-commerce group product by category [closed]
You are very close. I had the same problem a while ago, and blogged about it. Your join is missing one more join table, wp_terms, which has the term you want to sort on. Here is the code I used: class OrderWpscProducts { // flag for when a shop products post query is being created … Read more