Marketpress: how to get product category id of current product page
global $post;
$term_list = wp_get_post_terms($post->ID, 'product_category', array("fields" => "all"));
$currentProductCategory = $term_list[0] -> term_id;
global $post;
$term_list = wp_get_post_terms($post->ID, 'product_category', array("fields" => "all"));
$currentProductCategory = $term_list[0] -> term_id;