Updated code for WooCommerce 2.1.3

Supports WooCommerce 2.1.3 with WordPress 3.8.1