added support for woocommerce 2.x