Its woocommerce_widget_shopping_cart_button_view_cart
. See https://github.com/woocommerce/woocommerce/search?utf8=✓&q=woocommerce_widget_shopping_cart_buttons
So in addition to the code given above, you’ll need to add this.
remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_button_view_cart', 10 );
function my_woocommerce_widget_shopping_cart_view_cart() {
echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="wc-forward x-anchor" target="_blank"><span class="x-anchor-content" style="-webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center;"><span class="x-anchor-text"><span class="x-anchor-text-primary">'. esc_html__( 'View Order', 'woocommerce' ) .'</span></span></span></a>';
}
add_action( 'woocommerce_widget_shopping_cart_buttons', 'my_woocommerce_widget_shopping_cart_view_cart', 10 );
Further custom development from here would be getting outside the scope of our support. Also, issues arising from the use of custom code and additional enhancements would be outside the scope as well.
We do have an in-house custom development team that offer paid services, who may be able to assist if you have addition customization question. They can be contacted at pinnacle@theme.co if this is of interest to you.
Thank you for your understanding.