The Objective:
Truthcoffee wanted to supply a promotional coupon code to their valued customers through Facebook and Twitter as part of an online marketing campaign.
The coupon would give the customers a percentage discount on a specified range of products.
The initial problem:
The problem was that with the WP eCommerce plugin from Getshopped.org, at that time the coupon could only be applied to all types of products or one specific product.
Truthcoffee has products ranging from coffee beans to espresso machines, so obviously they did not want a 10% off coupon aimed at a product range (coffee beans) with a value up to R100, to be applied to a product such as an Espresso Machine with a value of R10000.
The solution:
Our developers wrote some code to have the coupon code be applied to a product category and not products overall.
This fix was integrated by Getshopped.org in WP eCommerce with version 3.7.6.6
Keep an eye out for Wp eCommerce 3.8 that will be released soon which now utilizes Custom Post Types as means for storing Products in the Database, taking full advantage of WordPress 3.0 features.

