Fixed compatibility with WooCommerce 2.0.0 or later
fixed versions