woocommerce functions moved to separate file