I was searching WP Ecommerce documentation, trying to find what function to use to add category to WPEC, but no luck. Is there some function or piece of code that can do this?
You can use wp_insert_term to add terms to the wpsc_product_category taxonomy:
$args = array(
'description'=> 'term description.',
'slug' => 'my-term'
wp_insert_term( 'My term', 'wpsc_product_category', $args );
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago