For our customization want to get WooCommerce cart page URL programmatically then use the following snippet!. The WooCommerce cart page URL can be retrieved with a call to the cart object’s get_cart_url() function.
global $woocommerce; $cart_url = $woocommerce->cart->get_cart_url();
Have any doubt, then comment here!