How to get WooCommerce page URLs in WooCommerce 3.x

WooCommerce introduced a function which makes things much more elegant and simple, and gets rid of
global $woocommerce
and $aUrl
when getting page URLs.