Add more WooCommerce code

Added more WooCommerce compatibility code.

Need more code and more testing