improved support to woocommerce 2.1