Fix compatibility with woocommerce 2.1.9
Merge pull request #7 from aleksey-taranets/WC-2.1.9

Fix compatibility with woocommerce 2.1.9