removed extra definitions
fixed support with woocommerce 2.1 or later