Refactor cart functions in core
Core functions woocommerce to wc refactor