Update functions.php

Added full compatibility & support for WooCommerce.