adds compatibility with woocommerce 1.6.6