Update wc-invoice.php

Added functions to: (i) Check if WooCommerce is active; (ii) Detecting WC version; and (iii) Maintain compatibility with 1.6.6 and 2.0